Add completion script for g function

This commit is contained in:
Oliver Davies 2020-03-03 00:51:30 +00:00
parent efa6bcf778
commit de5746401c
3 changed files with 5 additions and 2 deletions

2
rcrc
View file

@ -1,4 +1,4 @@
DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles"
EXCLUDES="install.sh README.md"
SYMLINK_DIRS="composer bin functions configs"
SYMLINK_DIRS="completion-scripts composer bin functions configs"
TAGS="git npm php tmux vim zsh"

View file

@ -0,0 +1,3 @@
#compdef g
compdef g=git

View file

@ -1,5 +1,5 @@
# load our own completion functions
fpath=(~/.zsh/completion /usr/local/share/zsh/site-functions $fpath)
fpath=(~/.zsh/completion-scripts /usr/local/share/zsh/site-functions $fpath)
# completion; use cache if updated within 24h
autoload -Uz compinit