summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 621567d..513cd59 100644
--- a/.bashrc
+++ b/.bashrc
@@ -26,4 +26,12 @@ if ! shopt -oq posix; then
fi
fi
-. ~/src/git-prompt/git-prompt.sh
+function starship_set_win_title() {
+ local cwd="${PWD/$HOME/\~}"
+ cwd="${cwd##[/~]*/}/"
+
+ xtitle "$USER@$(hostname):$cwd"
+}
+starship_precmd_user_func=starship_set_win_title
+eval "$(starship init bash)"
+