diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -12,4 +12,13 @@ source $DOTFILES/zsh/aliases.zsh source $DOTFILES/zsh/completions.zsh source $DOTFILES/zsh/keybindings.zsh -eval "$(starship init zsh)"
\ No newline at end of file +eval "$(starship init zsh)" + +function set_win_title() { + folder=$(sed "s/$USER/~/g" <<<$PWD:t) + + window_title="\033]0;$USER@$HOST: $folder\007" + echo -ne "$window_title" +} + +precmd_functions+=(set_win_title) |