This commit is contained in:
Hakan Ensari 2017-05-02 02:24:08 +00:00 committed by GitHub
commit 865ce2ec19
2 changed files with 10 additions and 0 deletions

2
plugins/c/_c Normal file
View file

@ -0,0 +1,2 @@
#compdef c
_files -W ~/code -/

8
plugins/c/c.plugin.zsh Normal file
View file

@ -0,0 +1,8 @@
# add function that cds to ~/code, with tab-completion
function c() {
cd ~/code/$1;
}
fpath=($ZSH/plugins/c $fpath)
autoload -U compinit
compinit -i