diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-11-06 15:16:41 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-11-06 15:16:41 -0500 |
commit | d51d9519fc59cd61123162c9b46053a475dcde3b (patch) | |
tree | 8c16133e022db96f36c8e190e361710689eb6a48 /zshrc | |
parent | f2163cf3e010d12eadce8908cff2148a0f04d14c (diff) |
feat: added starship config and installer
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) |