update tab title functions
This commit is contained in:
+11
-2
@@ -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"
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user