如题,比如 我想 设定一个路径 /workplace/rails/agile_web_dev_rails/dept 为一个常量,这样每次进入终端就不用敲很长的路径名了
在.bash_profile 里
export xx='/workplace/rails/agile_web_dev_rails/dept'
在终端
cd $xx
z - jump around DESCRIPTION Tracks your most used directories, based on 'frecency'.
After a short learning phase, z will take you to the most 'frecent' directory that matches ALL of the regexes given on the command line.
@shangrenzhidao
brew install autojump
vim ~/.bashrc or vim ~/.zshrc
[[ -s
brew --prefix/etc/autojump.sh ]] && .
brew --prefix/etc/autojump.sh
使用: j your_directory