update tab title functions

This commit is contained in:
2026-04-22 14:00:51 -07:00
parent e994a270f2
commit 321eac0c33
2 changed files with 13 additions and 2 deletions
+11 -2
View File
@@ -1,7 +1,16 @@
typeset -ag precmd_functions
typeset -ag preexec_functions
function precmd_tab_directory () {
print -Pn "\e]0;%n@%m: %~\a"
print -Pn -- '\e]0;%n@%m: %~\a'
}
precmd_functions+="precmd_tab_directory"
precmd_functions+="precmd_tab_directory"
function preexec_tab_status () {
print -Pn -- '\e]0;'
print -n "$1"
print -Pn -- ' (%~)\a'
}
preexec_functions+="preexec_tab_status"
+2
View File
@@ -7,6 +7,8 @@ autoload -U colors && colors
PROMPT="%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[magenta]%}%m %{$fg[white]%}%~ %# "
RPROMPT=""
export HISTSIZE=50
export SAVEHIST=50
_zeesh_fresh_install=0