summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorGianni Ceccarelli <gceccarelli@veritone.com>2023-10-09 17:14:40 +0100
committerdakkar <dakkar@thenautilus.net>2023-10-13 09:46:17 +0000
commit43cbdf5cbfef79e4b3348f41dfbb0a75c8eda0a1 (patch)
treecb3bd8537d8f427cdcfe3c67835fa36701732c52 /.bashrc
parentbackground picture (diff)
downloaddotfiles-43cbdf5cbfef79e4b3348f41dfbb0a75c8eda0a1.tar.gz
dotfiles-43cbdf5cbfef79e4b3348f41dfbb0a75c8eda0a1.tar.bz2
dotfiles-43cbdf5cbfef79e4b3348f41dfbb0a75c8eda0a1.zip
starship config
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)"
+