diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 8d9d4da..f5e3e4f 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -9,6 +9,14 @@ in enableCompletion = true; history.size = 10000; + initExtra = '' + function set_win_title(){ + echo -ne "\033]0; $(basename "$PWD") \007" + } + + precmd_functions+=(set_win_title) + ''; + sessionVariables = { ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style; };