diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index f5e3e4f..23e8a1a 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -11,7 +11,8 @@ in initExtra = '' function set_win_title(){ - echo -ne "\033]0; $(basename "$PWD") \007" + local TITLE=$(git config --get remote.origin.url || echo "$PWD") + echo -ne "\033]0; $(basename "$TITLE") \007" } precmd_functions+=(set_win_title)