diff --git a/modules/terminal-life/zsh/default.nix b/modules/terminal-life/zsh/default.nix index aaedac92..fd40836a 100644 --- a/modules/terminal-life/zsh/default.nix +++ b/modules/terminal-life/zsh/default.nix @@ -85,7 +85,8 @@ in stty erase '^?' precmd () { - echo -e -n "\e]2;$(pwd)\e\\" + DIR_NAME=$(pwd | sed "s|^$HOME|~|g") + echo -e -n "\e]2;$DIR_NAME\e\\" } # If a command is not found, show me where it is