summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorGianni Ceccarelli <gceccarelli@veritone.com>2023-10-09 17:14:40 +0100
committerGianni Ceccarelli <gceccarelli@veritone.com>2023-10-09 17:14:40 +0100
commit95e3445db0a18e87c5c826240b5af4bb55bba118 (patch)
tree25ddb38f4d57598fa5ae78d11588b1ff9f5e8e95 /.bashrc
parentremove Multi_key from mod1 (diff)
downloaddotfiles-95e3445db0a18e87c5c826240b5af4bb55bba118.tar.gz
dotfiles-95e3445db0a18e87c5c826240b5af4bb55bba118.tar.bz2
dotfiles-95e3445db0a18e87c5c826240b5af4bb55bba118.zip
switch to alacritty + starship
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 41d0fa4..55121e4 100644
--- a/.bashrc
+++ b/.bashrc
@@ -32,7 +32,7 @@ shopt -s no_empty_cmd_completion
function xtitle() {
case $TERM in
- xterm*|rxvt|Eterm|eterm)
+ xterm*|rxvt*|Eterm|eterm)
echo -ne "\e]0;$1\007"
;;
screen)
@@ -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\