mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 4d00c04830 into 5667161d49
This commit is contained in:
commit
865ce2ec19
2 changed files with 10 additions and 0 deletions
2
plugins/c/_c
Normal file
2
plugins/c/_c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#compdef c
|
||||
_files -W ~/code -/
|
||||
8
plugins/c/c.plugin.zsh
Normal file
8
plugins/c/c.plugin.zsh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue