安装 oh my zsh:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo vim ~/.zshrc
alias vp="cd /Users/xxx/xxx"
source ~/.zshrc
使用:
直接在控制台写:vp
则会执行cd /Users/xxx/xxx命令
安装 oh my zsh:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo vim ~/.zshrc
alias vp="cd /Users/xxx/xxx"
source ~/.zshrc
使用:
直接在控制台写:vp
则会执行cd /Users/xxx/xxx命令