add if to zsh powerline

This commit is contained in:
Oystein Kristoffer Tveit 2021-05-22 17:34:22 +02:00
parent 255e76a4c1
commit e5f3d47891

View File

@ -2,6 +2,9 @@
# Initialize p10k if present # Initialize p10k if present
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
else
ZSH_THEME="robbyrussell"
fi fi
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
@ -9,8 +12,6 @@ export ZSH="$HOME/.oh-my-zsh"
source ~/.aliases source ~/.aliases
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=( plugins=(
git git
vscode vscode