diff options
-rw-r--r-- | .bashrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -26,6 +26,17 @@ if ! shopt -oq posix; then fi fi +function xtitle() { + case $TERM in + xterm*|rxvt*|Eterm|eterm|alacritty) + echo -ne "\e]0;$1\007" + ;; + screen) + echo -ne "\e_$1\e\\" + ;; + esac +} + function starship_set_win_title() { local cwd="${PWD/$HOME/\~}" cwd="${cwd##[/~]*/}/" |