Skip to content

Commit cf6f1bf

Browse files
author
nar3nd3r
committed
added fix for compinit
1 parent aafb2cb commit cf6f1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i_am_lazy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function main() {
227227
# one last step
228228
# set zsh and oh-my-zsh
229229
run_this_command "brew install zsh zsh-completions"
230-
run_this_command "rm -f ~/.zcompdump && compinit"
230+
run_this_command "[[ -e ~/.zcompdump ]] && rm -f ~/.zcompdump || compinit"
231231
chmod go-w '/usr/local/share'
232232
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
233233
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k

0 commit comments

Comments
 (0)