diff --git a/base/precmd.zsh b/base/precmd.zsh index fc24b0b..11ea5ce 100644 --- a/base/precmd.zsh +++ b/base/precmd.zsh @@ -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" \ No newline at end of file +precmd_functions+="precmd_tab_directory" + +function preexec_tab_status () { + print -Pn -- '\e]0;' + print -n "$1" + print -Pn -- ' (%~)\a' +} + +preexec_functions+="preexec_tab_status" \ No newline at end of file diff --git a/zshrc-stub b/zshrc-stub index 8c60887..e98d13c 100644 --- a/zshrc-stub +++ b/zshrc-stub @@ -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