BASH:
打开配置:
vim ~/.bashrc
加入下面这句:
1 # directory following 2 export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'
ZSH:
vim ~/.zshrc:
加入下面这句:
1 precmd () { echo -n "\x1b]1337;CurrentDir=$(pwd)\x07" }
BASH:
打开配置:
vim ~/.bashrc
加入下面这句:
1 # directory following 2 export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'
ZSH:
vim ~/.zshrc:
加入下面这句:
1 precmd () { echo -n "\x1b]1337;CurrentDir=$(pwd)\x07" }