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 10:25:46 +0100
commit61c7ec75268817d4fca471f7fd931fe451090515 (patch)
tree1ba9e78fbf91f5d63cedb6bbf63f0e821415ae87 /.bashrc
parentremove Multi_key from mod1 (diff)
downloaddotfiles-61c7ec75268817d4fca471f7fd931fe451090515.tar.gz
dotfiles-61c7ec75268817d4fca471f7fd931fe451090515.tar.bz2
dotfiles-61c7ec75268817d4fca471f7fd931fe451090515.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 6666228..cb51786 100644
--- a/.bashrc
+++ b/.bashrc
@@ -49,7 +49,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\