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

28
zshrc
View File

@ -8,19 +8,23 @@ 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
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ -s ~/.p10k.zsh ]] && source ~/.p10k.zsh if [[ -n "$(command -v starship)" ]]; then
eval "$(starship init zsh)"
else
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
[[ -s ~/.p10k.zsh ]] && source ~/.p10k.zsh
fi
# Custom aliases # Custom aliases
[[ -s ~/.aliases ]] && source ~/.aliases [[ -s ~/.aliases ]] && source ~/.aliases