From 9269a63f800fec5d2eb289c8eb0fdf999bb4c4fe Mon Sep 17 00:00:00 2001 From: nevaforget Date: Wed, 3 Apr 2024 16:05:44 +0200 Subject: [PATCH] fix zsh/ohmyzsh plugins --- home/.zshrc | 6 +++--- setup.sh | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index c64abb5..b35136d 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -87,8 +87,8 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr source /usr/share/oh-my-zsh/oh-my-zsh.sh -source $HOME/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme -source $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k/powerlevel10k.zsh-theme +source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh eval "$(fzf --zsh)" diff --git a/setup.sh b/setup.sh index 70cd62c..075ccd7 100755 --- a/setup.sh +++ b/setup.sh @@ -95,12 +95,11 @@ function inst_zsh { done cp -rf $MONARCHOS_DIR/home/.zshrc $HOME/.zshrc - rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - rm -rf ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k + chown $USER:$USER $HOME/.zshrc + + sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions + sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting + sudo git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k chsh -s /usr/bin/zsh cp -rf $MONARCHOS_DIR/home/.p10k.zsh $HOME/.p10k.zsh