aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-16 18:24:40 -0700
committerGravatar Tom Willemse2026-08-26 23:04:25 -0700
commit1e1eab1c306f78329ac70a59da0d03fddb12ad0e (patch)
tree3da1e5ecd28cf4ea540fe320ab87b5ea895c2e93
parent3ceef8a5714f597244dae8c53d4e333a394965be (diff)
downloadnew-dotfiles-1e1eab1c306f78329ac70a59da0d03fddb12ad0e.tar.gz
new-dotfiles-1e1eab1c306f78329ac70a59da0d03fddb12ad0e.zip
zsh: Add default value when there is no project
This is just the name of the current directory.
-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