Prefer starship for prompts
This commit is contained in:
parent
3a12876930
commit
992c15e7d6
28
zshrc
28
zshrc
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user