Skip to content

Instantly share code, notes, and snippets.

@mheap
Created January 7, 2015 12:44
Show Gist options
  • Save mheap/915f0ca02d3ebb856117 to your computer and use it in GitHub Desktop.
Save mheap/915f0ca02d3ebb856117 to your computer and use it in GitHub Desktop.
kilo% ls ~/.zsh/completions
_hub
kilo% echo $fpath
/home/michael/.zsh/completion /usr/local/share/zsh/site-functions /usr/share/zsh/vendor-functions /usr/share/zsh/vendor-completions /usr/share/zsh/functions/Calendar /usr/share/zsh/functions/Chpwd /usr/share/zsh/functions/Completion /usr/share/zsh/functions/Completion/AIX /usr/share/zsh/functions/Completion/BSD /usr/share/zsh/functions/Completion/Base /usr/share/zsh/functions/Completion/Cygwin /usr/share/zsh/functions/Completion/Darwin /usr/share/zsh/functions/Completion/Debian /usr/share/zsh/functions/Completion/Linux /usr/share/zsh/functions/Completion/Mandriva /usr/share/zsh/functions/Completion/Redhat /usr/share/zsh/functions/Completion/Solaris /usr/share/zsh/functions/Completion/Unix /usr/share/zsh/functions/Completion/X /usr/share/zsh/functions/Completion/Zsh /usr/share/zsh/functions/Completion/openSUSE /usr/share/zsh/functions/Exceptions /usr/share/zsh/functions/MIME /usr/share/zsh/functions/Misc /usr/share/zsh/functions/Newuser /usr/share/zsh/functions/Prompts /usr/share/zsh/functions/TCP /usr/share/zsh/functions/VCS_Info /usr/share/zsh/functions/VCS_Info/Backends /usr/share/zsh/functions/Zftp /usr/share/zsh/functions/Zle
kilo% cat .zshrc
PATH=~/bin:$PATH
fpath=(~/.zsh/completion $fpath)
# Initialize autocomplete here, otherwise functions won't be loaded
autoload -Uz compinit && compinit
# Enable hub
eval "$(hub alias -s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment