Closed Yeti-or closed 9 years ago
Hello, how can I alias z - to cd - ? thanks
z -
cd -
How about something like this?
z_cd() { if [[ "$1" == "-" ]]; then cd - else z $@ fi } alias z='z_cd'
it's works. :smiley: thank you!
Hello, how can I alias
z -
tocd -
? thanks