From 8760899b92e91a7742aefd55c5bbbc12f2d1aa24 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Mon, 9 Oct 2023 17:14:40 +0100 Subject: starship config --- .bashrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 3318cd5..4c99eb7 100644 --- a/.bashrc +++ b/.bashrc @@ -48,7 +48,15 @@ function xreset() { esac } -. ~/src/git-prompt/git-prompt.sh +#. ~/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)" #export PS1="\ #\[\033[1;37m\]\u@\h\ -- cgit v1.2.3