Fix directory tracking in Zsh
* integration/zsh (__eat_precmd): Use '$HOST' instead of '$HOSTNAME'.
This commit is contained in:
parent
792a98810e
commit
5c5711a97e
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# integration/bash --- Bash integration
|
||||
# integration/zsh --- Zsh integration
|
||||
|
||||
# Copyright (C) 2022 Akib Azmain Turja.
|
||||
# Copyright (C) 2022, 2023 Akib Azmain Turja.
|
||||
|
||||
# This file is not part of GNU Emacs.
|
||||
|
||||
|
@ -26,7 +26,7 @@ __eat_precmd () {
|
|||
fi
|
||||
__eat_current_command=""
|
||||
# Send the current working directory, for directory tracking.
|
||||
printf '\e]51;e;A;%s;%s\e\\' "$(printf "%s" "$HOSTNAME" | base64)" \
|
||||
printf '\e]51;e;A;%s;%s\e\\' "$(printf "%s" "$HOST" | base64)" \
|
||||
"$(printf "%s" "$PWD" | base64)"
|
||||
# Update title.
|
||||
# "${PWD/$HOME/'~'}" converts "/home/akib/org/" to "~/org/".
|
||||
|
|
Loading…
Add table
Reference in a new issue