Skip to content

Commit 9351d77

Browse files
Merge pull request #3 from CrustyBarnacle/p10k
P10k updates complete - no more config framework
2 parents 4fc6eaa + 01ca6a2 commit 9351d77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

configure_shell.zsh

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,23 @@ cat <<- EOF > ~/.zshrc
1414
1515
PROMPT='%F{040}%n%f @ %F{156}%~%f -> '
1616
RPROMPT='%*'
17-
18-
ZSH_THEME=
1917
EOF
2018

2119
# ZSH custom folder
2220
mkdir -p $HOME/.zsh/custom
2321
ZSH_CUSTOM=$HOME/.zsh/custom
2422

2523
# Install powerlevel10k
26-
THEME_REPO='~/.zsh/custom/themes/powerlevel10k'
24+
THEME_REPO='$HOME/.zsh/custom/themes/powerlevel10k'
2725
if [[ -d $THEME_REPO ]]; then
2826
echo "Theme already installed."
2927
else
3028
echo "Installing theme..."
3129
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $THEME_REPO
3230
fi
3331

34-
# sed delimeter "|" used for clarity
35-
sed -ie 's|^ZSH_THEME=.*|ZSH_THEME="powerlevel10k\/powerlevel10k"|' ~/.zshrc
32+
# Add Powerline10k theme
33+
echo 'source $HOME/.zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
3634
exec zsh # Powerline10k wizard should start automatically - uncomment next line if otherwise
3735
# p10k configure
3836

0 commit comments

Comments
 (0)