aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc.org15
1 files changed, 14 insertions, 1 deletions
diff --git a/zsh/zshrc.org b/zsh/zshrc.org
index f89ab2d..57d9228 100644
--- a/zsh/zshrc.org
+++ b/zsh/zshrc.org
@@ -208,7 +208,20 @@ Autoload any ZSH function from =$HOME/.zsh/functions=.
#+begin_src sh
PROMPT='%T $(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f '
- RPROMPT='${vcs_info_msg_0_}'
+ PROMPT='%{\e]133;P;k=i\a%}%T $(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f %{\e]133;B\a%}'
+ PROMPT=$'%{\e]133;P;k=i\a%}%T $(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f %{\e]133;B\a%}'
+ RPROMPT=$'%{\e]133;P;k=r\a%}${vcs_info_msg_0_}%{\e]133;B\a%}'
+ #+end_src
+
+ Execute this preexec function to mark the output field.
+
+ #+begin_src sh
+ function mark_output()
+ {
+ printf "\\e]133;C\a"
+ }
+
+ add-zsh-hook preexec mark_output
#+end_src
Set the current tab's title (for wezterm at least), to the current project directory. This is set above with the =%r= specifier.