mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Added 'c' function to quickly access code directory. Inspired by ryanb.
This commit is contained in:
parent
3552423de3
commit
263f0a5dd1
2 changed files with 19 additions and 0 deletions
6
plugins/c/_c
Normal file
6
plugins/c/_c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#compdef c
|
||||
if [[ "$CODE_HOME" == "" && -d "$HOME/code" ]] ; then
|
||||
_files -W $HOME/code
|
||||
elif [ -d "$CODE_HOME" ]; then
|
||||
_files -W "$CODE_HOME"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue