Move bash config to shell subdir
This commit is contained in:
11
shell/scripts.d/10-starship.sh
Normal file
11
shell/scripts.d/10-starship.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
function set_window_title() {
|
||||
if [[ "${PWD}" == $PROJECTS_PATH/* ]]; then
|
||||
echo -ne "\033]0; Project: $(basename ${PWD}) \007"
|
||||
else
|
||||
echo -ne "\033]0; $LOCATION \007"
|
||||
fi
|
||||
}
|
||||
|
||||
starship_precmd_user_func="set_window_title"
|
||||
|
||||
eval "$(starship init bash)"
|
||||
Reference in New Issue
Block a user