add if to zsh powerline
This commit is contained in:
parent
255e76a4c1
commit
e5f3d47891
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user