aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-05-16 13:51:22 -0400
committertdro <tdro@users.noreply.github.com>2020-05-16 13:51:22 -0400
commit8059293ccfc1810396e36407413a3b292948a8b0 (patch)
tree9e3d44f0cc60a465432805614c12909746bcebf2 /.bashrc
parent8a1d659737a902c9a97bec317500302c653f581a (diff)
downloaddotfiles-8059293ccfc1810396e36407413a3b292948a8b0.tar.gz
dotfiles-8059293ccfc1810396e36407413a3b292948a8b0.tar.bz2
dotfiles-8059293ccfc1810396e36407413a3b292948a8b0.zip
.bashrc: nix fzf
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc10
1 files changed, 4 insertions, 6 deletions
diff --git a/.bashrc b/.bashrc
index e3ec67b..012240e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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