From 321eac0c3308832e019e513d2eb5f45280134105 Mon Sep 17 00:00:00 2001 From: Nicole O'Connor Date: Wed, 22 Apr 2026 14:00:51 -0700 Subject: [PATCH] update tab title functions --- base/precmd.zsh | 13 +++++++++++-- zshrc-stub | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) 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