update completion and setup key-bindings linked to history