From 85c8faabf9b51f040f1925b453d52f7cbadef74f Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 12 Dec 2021 18:07:39 -0500 Subject: [PATCH] Set term title to command currently running --- private_dot_zshrc.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/private_dot_zshrc.tmpl b/private_dot_zshrc.tmpl index 66da1abd14f1de8c6ddb14eaf6eba76207979d8d..7522c5907bf4ac35871fe0ae16e097043796eb44 100644 --- a/private_dot_zshrc.tmpl +++ b/private_dot_zshrc.tmpl @@ -24,8 +24,9 @@ zstyle ':zim:input' double-dot-expand yes # Set a custom terminal title format using prompt expansion escape sequences. # See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes # If none is provided, the default '%n@%m: %~' is used. -# TODO -#zstyle ':zim:termtitle' format '%1~' +zstyle ':zim:termtitle' hooks 'preexec' 'precmd' +zstyle ':zim:termtitle:preexec' format '${${(A)=1}[1]}' +zstyle ':zim:termtitle:precmd' format '%1~' # Customize the style that the suggestions are shown with. # Set what highlighters will be used. # See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md