summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2016-09-23 13:46:52 +0200
committerAlan Pearce2016-09-23 13:46:52 +0200
commit73c3dc3c77b69da6444bfa198b77b60dd1edc874 (patch)
treef3a8c57a259f6e48fc80dd2f45abae094e57ee15 /tag-zsh/config
parentb9b86fcefd2bd47d8b42a7f48af4f4c1ea9f72d9 (diff)
downloaddotfiles-73c3dc3c77b69da6444bfa198b77b60dd1edc874.tar.lz
dotfiles-73c3dc3c77b69da6444bfa198b77b60dd1edc874.tar.zst
dotfiles-73c3dc3c77b69da6444bfa198b77b60dd1edc874.zip
zsh: Add lunchy completion if installed
Diffstat (limited to 'tag-zsh/config')
-rw-r--r--tag-zsh/config/zsh/zshrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index f01625a..612908e 100644
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -124,6 +124,14 @@ then
 	autoload -U compinit && compinit
 fi
 
+if [[ -n $commands[lunchy] ]]
+then
+	LUNCHY_DIR=$(dirname $(gem which lunchy))/../extras
+	if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then
+		. $LUNCHY_DIR/lunchy-completion.zsh
+	fi
+fi
+
 if [[ $TERM == "dumb" ]]
 then
 	PROMPT="> "