Cleanup zshrc

This commit is contained in:
Daniel Lynn 2021-08-05 14:09:23 -05:00
parent d0b52f1d4e
commit 3834271bb5
Signed by: daniel
GPG Key ID: 28496A140E180A9D

26
zshrc
View File

@ -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