Prefer starship for prompts

This commit is contained in:
Daniel Lynn 2021-08-05 13:15:57 -05:00
parent 3a12876930
commit 992c15e7d6
Signed by: daniel
GPG Key ID: 28496A140E180A9D

6
zshrc
View File

@ -8,6 +8,10 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
if [[ -n "$(command -v starship)" ]]; then
eval "$(starship init zsh)"
else
# Use powerline # Use powerline
USE_POWERLINE="true" USE_POWERLINE="true"
# Source manjaro-zsh-configuration # Source manjaro-zsh-configuration
@ -19,8 +23,8 @@ if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt source /usr/share/zsh/manjaro-zsh-prompt
fi fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ -s ~/.p10k.zsh ]] && source ~/.p10k.zsh [[ -s ~/.p10k.zsh ]] && source ~/.p10k.zsh
fi
# Custom aliases # Custom aliases
[[ -s ~/.aliases ]] && source ~/.aliases [[ -s ~/.aliases ]] && source ~/.aliases