aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zshrc
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-06 15:16:41 -0500
committerToby Vincent <tobyv13@gmail.com>2021-11-06 15:16:41 -0500
commitd51d9519fc59cd61123162c9b46053a475dcde3b (patch)
tree8c16133e022db96f36c8e190e361710689eb6a48 /zshrc
parentf2163cf3e010d12eadce8908cff2148a0f04d14c (diff)
feat: added starship config and installer
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc11
1 files changed, 10 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index 60ad07f..1049668 100644
--- a/zshrc
+++ b/zshrc
@@ -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)