BashZSHBash~/.bash_profile: export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]' ZSH~/.zshrc: precmd () { echo -n "\x1b]1337;CurrentDir=$(pwd)\x07" }