Skip to content

Commit a8ec512

Browse files
committed
update zshrc
1 parent 10a65d1 commit a8ec512

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

home/dot_zshrc.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,16 @@ enable_proxy
100100
# change GITSTATUS_CACHE_DIR or XDG_CACHE_HOME to change default cache dir for gitstatus
101101
# https://github.com/romkatv/gitstatus/blob/master/install
102102

103-
# Powerlevel10k requires zsh version is greater than or equal to 5.1
103+
# Default zsh theme
104+
ZSH_THEME="robbyrussell"
105+
104106
if [[ "`printf '%s\n' $(zsh --version | cut -d ' ' -f2) '5.1' | sort -V -r | head -n1`" = "5.1" ]]; then
107+
# Powerlevel10k requires zsh version is greater than or equal to 5.1
105108
# or we can install zsh-bin to upgrade zsh version
106109
# https://github.com/romkatv/zsh-bin
107110
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/install)"
108-
109-
ZSH_THEME="robbyrussell"
110111
elif [[ -n "$WINDSURF_CASCADE_TERMINAL" ]]; then
111-
ZSH_THEME="robbyrussell"
112+
# Windsurf is not compatiable with powerlevel10k
112113
else
113114
ZSH_THEME="powerlevel10k/powerlevel10k"
114115
[[ -s "$HOME/.p10k.zsh" ]] && \. "$HOME/.p10k.zsh"

0 commit comments

Comments
 (0)