From 7e79aac321e3512bb763b7336724f6e28090f72b Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Tue, 19 May 2020 13:19:31 +0800 Subject: zsh: fixed loading of oh-my-zsh --- zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index bc7d172..2031803 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -25,7 +25,6 @@ zplug "zsh-users/zsh-completions" zplug "zsh-users/zsh-history-substring-search" # THEME -POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k POWERLEVEL9K_PROMPT_ON_NEWLINE=true POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="" # POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ " @@ -59,8 +58,8 @@ fpath+=~/.zfunc autoload -Uz compinit compinit -[ -z $ZSH ] || ( [ -e $ZSH/oh-my-zsh.sh ] && \ - source $ZSH/oh-my-zsh.sh ) +[ -n $ZSH ] && [ -e $ZSH/oh-my-zsh.sh ] && \ + source $ZSH/oh-my-zsh.sh if [ "$TERM" = "linux" ]; then _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p' @@ -104,3 +103,4 @@ alias ec="emacsclient -c" [[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && \ source /usr/share/doc/pkgfile/command-not-found.zsh + -- cgit v1.2.3