functions/precmd: Support custom terminal titles
The `window_title` variable can be set to completely override the title of the terminal window. Alternatively, if the `term_name` variable is set, it will be prepended to the default window title.
This commit is contained in:
@@ -1 +1 @@
|
||||
print -Pn "\e]0;%n@%m:%~ (%y%)\a"
|
||||
print -Pn "\e]0;${window_title:-${term_name}${term_name:+ - }%n@%m:%~ (%y%)}\a"
|
||||
|
||||
Reference in New Issue
Block a user