dustin
/
zdotdir
Archived
1
0
Fork 0

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
Dustin 2017-01-17 14:37:38 -06:00
parent 48e913c8ce
commit fc8d0d0b84
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
print -Pn "\e]0;%n@%m:%~ (%y%)\a"
print -Pn "\e]0;${window_title:-${term_name}${term_name:+ - }%n@%m:%~ (%y%)}\a"