Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fergusb/zsh
Browse files Browse the repository at this point in the history
* 'master' of github.com:fergusb/zsh:
  added tmuxinator autocmplete
  • Loading branch information
fergusb committed May 24, 2015
2 parents e53b29a + 9c12779 commit 1c4138e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions plugins/tmuxinator.zsh
@@ -0,0 +1,30 @@
#compdef tmuxinator mux

_tmuxinator() {
local commands projects
commands=(${(f)"$(tmuxinator commands zsh)"})
projects=(${(f)"$(tmuxinator completions start)"})

if (( CURRENT == 2 )); then
_describe -t commands "tmuxinator subcommands" commands
_describe -t projects "tmuxinator projects" projects
elif (( CURRENT == 3)); then
case $words[2] in
copy|debug|delete|open|start)
_arguments '*:projects:($projects)'
;;
esac
fi

return
}

_tmuxinator

# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et
5 changes: 5 additions & 0 deletions zshrc
Expand Up @@ -23,6 +23,11 @@ for var in LANG LC_ALL LC_MESSAGES ; do
[[ -n ${(P)var} ]] && export $var
done

# ruby env
if [ -d $HOME/.rbenv ] ; then
eval "$(rbenv init -)"
fi

# color setup for ls
export LSCOLORS="Gxfxcxdxbxegedabagacad"
if [[ $(uname) == 'Darwin' ]]; then # we're on OS X
Expand Down

0 comments on commit 1c4138e

Please sign in to comment.