diff options
author | tdro <tdro@users.noreply.github.com> | 2020-05-16 13:51:22 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-05-16 13:51:22 -0400 |
commit | 8059293ccfc1810396e36407413a3b292948a8b0 (patch) | |
tree | 9e3d44f0cc60a465432805614c12909746bcebf2 /.bashrc | |
parent | 8a1d659737a902c9a97bec317500302c653f581a (diff) | |
download | dotfiles-8059293ccfc1810396e36407413a3b292948a8b0.tar.gz dotfiles-8059293ccfc1810396e36407413a3b292948a8b0.tar.bz2 dotfiles-8059293ccfc1810396e36407413a3b292948a8b0.zip |
.bashrc: nix fzf
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -25,12 +25,10 @@ stty -ixon; stty -ixoff; # fzf bindings -[ -f '/usr/share/fzf/completion.bash' ] && . /usr/share/fzf/completion.bash -[ -f '/usr/share/fzf/key-bindings.bash' ] && . /usr/share/fzf/key-bindings.bash -[ -f '/usr/share/doc/fzf/examples/completion.bash' ] && . /usr/share/doc/fzf/examples/completion.bash -[ -f '/usr/share/doc/fzf/examples/key-bindings.bash' ] && . /usr/share/doc/fzf/examples/key-bindings.bash -[ -f "$HOME/.config/fzf/shell/completion.bash" ] && . "$HOME/.config/fzf/shell/completion.bash" -[ -f "$HOME/.config/fzf/shell/key-bindings.bash" ] && . "$HOME/.config/fzf/shell/key-bindings.bash" +fzfcompletion=$(readlink "$(command -v fzf)" | cut -d '/' -f -4)/share/fzf/completion.bash; +fzfkeybindings=$(readlink "$(command -v fzf)" | cut -d '/' -f -4)/share/fzf/key-bindings.bash; +[ -f "$fzfcompletion" ] && . "$fzfcompletion"; +[ -f "$fzfkeybindings" ] && . "$fzfkeybindings"; # set virtual console colors if [ "$TERM" = "linux" ]; then |