summaryrefslogtreecommitdiffstatshomepage
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index b7a2981..2f1d292 100644
--- a/bashrc
+++ b/bashrc
@@ -6,3 +6,10 @@ source $DOTFILES/shell/env.sh
source $DOTFILES/shell/aliases.sh
[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/wsl.sh
[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/gpg.sh
+
+eval "$(starship init bash)"
+
+function set_win_title() {
+ echo -ne "\033]0;$USER@$HOSTNAME: ${PWD/$HOME/'~'}\007"
+}
+starship_precmd_user_func="set_win_title"