From 3834271bb5f0c420f1d79aa19675a4dd9396116a Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Thu, 5 Aug 2021 14:09:23 -0500 Subject: [PATCH] Cleanup zshrc --- zshrc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/zshrc b/zshrc index 6008d0d..4cbdc20 100644 --- a/zshrc +++ b/zshrc @@ -8,21 +8,21 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 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. 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 - if [[ -s ~/.p10k.zsh ]]; then source ~/.p10k.zsh fi @@ -34,7 +34,7 @@ fi # Custom aliases if [[ -s ~/.aliases ]]; then - source ~/.aliases; + source ~/.aliases fi # NVM @@ -47,5 +47,5 @@ fi # Source machine-specific setup if [[ -s ~/.zshrc.local ]]; then - source ~/.zshrc.local; + source ~/.zshrc.local fi