diff --git a/README.md b/README.md index a210334..4467a04 100644 --- a/README.md +++ b/README.md @@ -89,15 +89,6 @@ Using [omf](https://github.com/oh-my-fish/oh-my-fish): omf install https://github.com/ajeetdsouza/zoxide ``` -To enable key bindings you have to set the universal variable `ZOXIDE_KEY_BINDINGS` to 1 and restart the shell. -```fish -set -U ZOXIDE_KEY_BINDINGS 1 -``` - -| Keybinding | Action | -| ---------- | -------------------------------------------------------------------------------- | -| Alt+z / +z | Launch Zoxide in interactive mode | - ## Configuration ### Environment variables diff --git a/init.fish b/init.fish index 9f88bc1..7e5462f 100644 --- a/init.fish +++ b/init.fish @@ -2,17 +2,7 @@ function zoxide-add --on-event fish_prompt zoxide add end -set -q ZOXIDE_KEY_BINDINGS -or set -U ZOXIDE_KEY_BINDINGS 0 - abbr -a zi "z -i" abbr -a za "zoxide add" abbr -a zq "zoxide query" abbr -a zr "zoxide remove" - -if set -q ZOXIDE_KEY_BINDINGS; and test "$ZOXIDE_KEY_BINDINGS" -eq 1 - bind \ez 'z -i' - if bind -M insert >/dev/null 2>/dev/null - bind -M insert \ez 'z -i' - end -end