diff options
Diffstat (limited to 'tw')
-rw-r--r-- | tw/home/files/zshrc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc index 9f2972fc..6f4c619d 100644 --- a/tw/home/files/zshrc +++ b/tw/home/files/zshrc @@ -189,8 +189,8 @@ load_plugin fast-syntax-highlighting || load_plugin zsh-syntax-highlighting ## Terminal integration with foot -# https://codeberg.org/dnkl/foot/wiki#shell-integration if [ "$TERM" = foot ]; then + # https://codeberg.org/dnkl/foot/wiki#shell-integration function foot-osc7-pwd () { (( ZSH_SUBSHELL )) && return 0 emulate -L zsh # also sets localoptions for us @@ -199,11 +199,14 @@ if [ "$TERM" = foot ]; then printf '\e]7;file://%s%s\e\' "$HOST" "${PWD//(#m)([^@-Za-z&-;_~])/%${(l:2::0:)$(([##16]#MATCH))}}" } function foot-precmd () { + # https://codeberg.org/dnkl/foot/wiki#jumping-between-prompts print -Pn '\e]133;A\e\' + # https://codeberg.org/dnkl/foot/wiki#piping-last-command-s-output if ! builtin zle; then print -n '\e]133;D\e\' fi } + # https://codeberg.org/dnkl/foot/wiki#piping-last-command-s-output function foot-preexec () { print -n '\e]133;C\e\' } |