diff options
| author | jixiuf <jixiuf@qq.com> | 2019-08-08 23:56:10 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2019-08-08 23:56:10 +0800 |
| commit | b6a0484427b4cd16ff79f4e5730475e7d85d1f2c (patch) | |
| tree | 5aedf59fb3834f98289cf56c55eceb25c58f6229 /README.md | |
| parent | aafb9da5b978bc945513dd181f0ccbe4670d232c (diff) | |
change directory tracking prefix form 51; to 51;A
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -100,7 +100,7 @@ For `zsh` put this in your `.zshrc`: ```zsh function chpwd() { - print -Pn "\e]51;$(pwd)\e\\"; + print -Pn "\e]51;A$(pwd)\e\\"; } ``` @@ -110,7 +110,7 @@ command (please als have a look the answers [here](https://unix.stackexchange.co ```bash cd() { builtin cd "$@" || return - [ "$OLDPWD" = "$PWD" ] || echo -e "\e]51;$(pwd)\e\\" + [ "$OLDPWD" = "$PWD" ] || echo -e "\e]51;A$(pwd)\e\\" } ``` @@ -120,7 +120,7 @@ Put this in your *remote* .zshrc: ```zsh function chpwd() { - print -Pn "\e]51;$(whoami)@$(hostname):$(pwd)\e\\" + print -Pn "\e]51A;$(whoami)@$(hostname):$(pwd)\e\\" } ``` |
