aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-16 15:48:51 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-16 15:48:51 +0200
commitfb483305f5ad0621aeaba2ad4a85c8a904f60502 (patch)
tree4508a8f33ed0736193b5f4a663d5ff5f1ef1f462 /.config/zsh
parent5ecce9978159009008679195c4682f943f739c09 (diff)
downloaddotfiles-fb483305f5ad0621aeaba2ad4a85c8a904f60502.tar.gz
dotfiles-fb483305f5ad0621aeaba2ad4a85c8a904f60502.zip
Testing fzf sourcing (key-bindings & completion)
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index aca362f..e3e8425 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -43,8 +43,16 @@ stty start undef
#source /usr/share/nvm/init-nvm.sh
# Load fzf keybindings and completion
-source /usr/local/bin/fzf/shell/key-bindings.zsh
-source /usr/local/bin/fzf/shell/completion.zsh
+#source /usr/local/bin/fzf/shell/key-bindings.zsh
+#source /usr/local/bin/fzf/shell/completion.zsh
+
+if command -v fzf > /dev/null 2>&1; then
+ FZF_BASE=$(dirname $(dirname $(which fzf)))
+ source "${FZF_BASE}/shell/key-bindings.zsh"
+ source "${FZF_BASE}/shell/completion.zsh"
+else
+ echo "fzf not found, please install it to use fzf keybindings and completion."
+fi
# Suggest aliases for commands
source ~/.config/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh