Test replacing powerline with starship

This commit is contained in:
2025-11-05 23:34:53 -05:00
parent be2e175976
commit 2fcda19a40
4 changed files with 18 additions and 9 deletions

View File

@@ -14,4 +14,5 @@ alias prun="poetry run"
alias psync="poetry install --sync"
alias code='codium'
alias ssh='ssh -F ~/.ssh/config'
alias whereami='echo $LOCATION'
alias whereami='echo $LOCATION'
alias gg='dev'

View File

@@ -1,6 +0,0 @@
if [ -f `which powerline-daemon` ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bash/powerline.sh
fi

11
scripts.d/10-starship.sh Normal file
View File

@@ -0,0 +1,11 @@
function set_window_title() {
if [ "${PWD}" == $PROJECTS_DIR/* ]; then
echo -ne "Dev - $(basename $PWD)"
else
echo -ne "$LOCATION"
fi
}
starship_precmd_user_func="set_window_title"
eval "$(starship init bash)"