add starship config

This commit is contained in:
thomasabishop 2024-01-23 17:41:03 +00:00
parent ee29a7cdb0
commit 2737ae508e
2 changed files with 39 additions and 10 deletions

26
starship/starship.toml Normal file
View file

@ -0,0 +1,26 @@
[username]
style_user = 'red bold'
style_root = 'black bold'
format = '[$user]($style) '
disabled = false
show_always = true
[time]
format = '[$time]($style) '
disabled = false
[os]
disabled = false
style = 'blue bold'
[os.symbols]
Arch = " "
[git_branch]
format = '[$symbol$branch]($style) '
[git_metrics]
disabled = false
[aws]
disabled = true

View file

@ -8,7 +8,7 @@ alias cs-update="/home/thomas/repos/eolas/_scripts/auto_save.sh"
alias cs-query="/home/thomas/repos/eolas/_scripts/query.sh"
# Set properties based on OS
ZSH_THEME=spaceship
ZSH_THEME=""
SPACESHIP_TIME_SHOW=true
SPACESHIP_PROMPT_ASYNC=true
SPACESHIP_CHAR_SYMBOL="▶ "
@ -31,12 +31,15 @@ export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
prompt_end() {
if [[ -n $CURRENT_BG ]]; then
echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
else
echo -n "%{%k%}"
fi
echo -n "\n%{%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{%f%}"
CURRENT_BG=''
}
# prompt_end() {
# if [[ -n $CURRENT_BG ]]; then
# echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
# else
# echo -n "%{%k%}"
# fi
# echo -n "\n%{%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{%f%}"
# CURRENT_BG=''
# }
eval "$(starship init zsh)"