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.master
parent
48e913c8ce
commit
fc8d0d0b84
|
@ -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