add if to zsh powerline

pull/1/head
Oystein Kristoffer Tveit 2021-05-22 17:34:22 +02:00
parent 255e76a4c1
commit e5f3d47891
1 changed files with 4 additions and 3 deletions

View File

@ -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
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh