Files
toolbox-dev-env/scripts.d/10-starship.sh

12 lines
274 B
Bash
Raw Normal View History

2025-11-05 23:34:53 -05:00
function set_window_title() {
if [[ "${PWD}" == $PROJECTS_PATH/* ]]; then
echo -ne "\033]0; Project: $(basename ${PWD}) \007"
2025-11-05 23:34:53 -05:00
else
echo -ne "\033]0; $LOCATION \007"
2025-11-05 23:34:53 -05:00
fi
}
starship_precmd_user_func="set_window_title"
eval "$(starship init bash)"