dotfiles/.zsh/lib/shortcuts.zsh

17 lines
363 B
Bash
Raw Normal View History

2020-05-22 23:31:04 +02:00
# Directory shortcuts
# You can use cd ~x and vim ~x/file instead of cd /very/long/and/often/accessed/path. Some examples:
hash -d bin=$HOME/bin
case `uname` in
Darwin)
hash -d hucb=~$HOME/Sites/christianbaer.me
;;
Linux)
# commands for Linux go here
;;
FreeBSD)
hash -d etc=/usr/local/etc
hash -d www=/usr/local/www/ngineerx
;;
esac