aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/zshrc.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-16 18:24:40 -0700
committerGravatar Tom Willemse2026-07-16 18:24:40 -0700
commit4f8be2a73ddd2571237f71d22e5ad048ea6d6b38 (patch)
tree8aef9191118fa642cf707228886d47519b8eefab /zsh/zshrc.org
parentd84b1f52a400d95e8c56707901280bf730032152 (diff)
downloadnew-dotfiles-4f8be2a73ddd2571237f71d22e5ad048ea6d6b38.tar.gz
new-dotfiles-4f8be2a73ddd2571237f71d22e5ad048ea6d6b38.zip
zsh: Add default value when there is no project
This is just the name of the current directory.
Diffstat (limited to 'zsh/zshrc.org')
-rw-r--r--zsh/zshrc.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zshrc.org b/zsh/zshrc.org
index b944f82..fc53c1b 100644
--- a/zsh/zshrc.org
+++ b/zsh/zshrc.org
@@ -222,7 +222,7 @@ Set the current tab's title (for wezterm at least), to the current project direc
#+begin_src sh
function set_vcs_title()
{
- printf "\\e]0;${vcs_info_msg_1_}\\a"
+ printf "\\e]0;${vcs_info_msg_1_:-$(basename $PWD)}\\a"
}
add-zsh-hook precmd set_vcs_title