mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Added function that cds to ~/code, with tab-completion.
Lifted from Ryan Bates' dotfiles.
This commit is contained in:
parent
4fadc30247
commit
a686ccfe1e
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