From e5f3d478916caca498fc138b5828ea507556dc6c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 22 May 2021 17:34:22 +0200 Subject: [PATCH] add if to zsh powerline --- general/.zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/general/.zshrc b/general/.zshrc index 824f3a2..4becde8 100644 --- a/general/.zshrc +++ b/general/.zshrc @@ -2,6 +2,9 @@ # Initialize p10k if present if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" + ZSH_THEME="powerlevel10k/powerlevel10k" +else + ZSH_THEME="robbyrussell" fi # Path to your oh-my-zsh installation. @@ -9,8 +12,6 @@ export ZSH="$HOME/.oh-my-zsh" source ~/.aliases -ZSH_THEME="powerlevel10k/powerlevel10k" - plugins=( git vscode @@ -31,4 +32,4 @@ plugins=( source $ZSH/oh-my-zsh.sh # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh \ No newline at end of file +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh