Archived
1
0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zdotdir/functions/precmd
Dustin C. Hatch fc8d0d0b84 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.
2017-01-17 14:37:38 -06:00

2 lines
80 B
Plaintext

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