Switch from powerlevel10k to starship

This commit is contained in:
Trysdyn Black 2024-10-08 17:29:53 -07:00
parent 651a2da9be
commit 899c550345
3 changed files with 156 additions and 1601 deletions

10
.zshrc
View file

@ -1,10 +1,3 @@
# Archlinux packages p10k but nothing else does, so we have to check where p10k is
if [[ -a /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ]]; then
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
else
source ~/.p10k/powerlevel10k.zsh-theme
fi
# Print user@host into title so terminal tabs are correct
# Despite being called precmd() this executes after process exits, before prompt
precmd() { echo -ne "\033]0;${USER}@${HOST}\007" }
@ -39,5 +32,4 @@ bindkey '^x^e' edit-command-line
# Load any kind of system-local stuff
[[ ! -f ~/.zshrc.local ]] || source ~/.zshrc.local
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
eval "$(starship init zsh)"