]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "fzf" plugin: "zf(1), a command-line fuzzy finder"
authorAlexander Barton <alex@barton.de>
Sat, 26 Sep 2015 13:47:44 +0000 (15:47 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 26 Sep 2015 13:47:53 +0000 (15:47 +0200)
plugins/fzf/fzf.zshrc [new file with mode: 0644]

diff --git a/plugins/fzf/fzf.zshrc b/plugins/fzf/fzf.zshrc
new file mode 100644 (file)
index 0000000..84fe95c
--- /dev/null
@@ -0,0 +1,15 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# fzf.zshrc: Setup Git
+
+# Make sure that "fzf(1)" is installed
+(( $+commands[fzf] )) || return
+
+# Search for and read in FZF ZSH integration files
+for dir (
+       /usr/local/opt/fzf/shell
+); do
+       [[ -d "$dir" ]] || continue
+       source "$dir/completion.zsh"
+       source "$dir/key-bindings.zsh"
+       break
+done