diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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\ |