From a9080203f680a785fec0ae8baf12cada55ad4b43 Mon Sep 17 00:00:00 2001 From: gwbeip Date: Sun, 8 Feb 2026 17:37:19 +0800 Subject: [PATCH 1/2] feat(zsh): delete the dependency to oh-my-zsh --- zsh/functions/check.sh | 6 +++--- zsh/functions/install.sh | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/zsh/functions/check.sh b/zsh/functions/check.sh index 6c7af95..ee44707 100644 --- a/zsh/functions/check.sh +++ b/zsh/functions/check.sh @@ -22,9 +22,9 @@ function pj_check() { fi # check for oh-my-zsh - if [[ ! -d $ZSH_POLYJUICE_PLUGINS_PATH/ohmyzsh ]]; then - echo "oh-my-zsh is not installed." - fi + # if [[ ! -d $ZSH_POLYJUICE_PLUGINS_PATH/ohmyzsh ]]; then + # echo "oh-my-zsh is not installed." + # fi # check for zoxide if (( ! $+commands[zoxide] )); then diff --git a/zsh/functions/install.sh b/zsh/functions/install.sh index fbe68cd..8dea905 100644 --- a/zsh/functions/install.sh +++ b/zsh/functions/install.sh @@ -73,20 +73,20 @@ function pj_install_plugins() { fi # git clone oh-my-zsh - if [ ! -d "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh ]; then - echo "Oh My Zsh is not downloaded. Downloading..." - # git clone https://github.com/ohmyzsh/ohmyzsh.git "$PATH_OHMYZSH" - git clone https://gitee.com/mirrors/ohmyzsh.git "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh - else - cd "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh - if [ ! -d .git ]; then - echo "Oh My Zsh is not a git repository. Please remove $ZSH_POLYJUICE_PLUGINS_PATH/ohmyzsh and try again." - else - echo "Oh My Zsh is already exist. Updating..." - git pull - fi - cd - - fi + # if [ ! -d "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh ]; then + # echo "Oh My Zsh is not downloaded. Downloading..." + # # git clone https://github.com/ohmyzsh/ohmyzsh.git "$PATH_OHMYZSH" + # git clone https://gitee.com/mirrors/ohmyzsh.git "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh + # else + # cd "$ZSH_POLYJUICE_PLUGINS_PATH"/ohmyzsh + # if [ ! -d .git ]; then + # echo "Oh My Zsh is not a git repository. Please remove $ZSH_POLYJUICE_PLUGINS_PATH/ohmyzsh and try again." + # else + # echo "Oh My Zsh is already exist. Updating..." + # git pull + # fi + # cd - + # fi echo "All plugins are installed/updated. Run 'exec zsh' to apply changes." } From 6f1e783a56124201859a522a7612ffeddff03d26 Mon Sep 17 00:00:00 2001 From: gwbeip Date: Sun, 8 Feb 2026 17:38:44 +0800 Subject: [PATCH 2/2] feat(zsh): typo --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 22d9a1e..70a1668 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -55,7 +55,7 @@ if [[ -f $ZSH_POLYJUICE_PLUGINS_PATH/zsh-syntax-highlighting/zsh-syntax-highligh source $ZSH_POLYJUICE_PLUGINS_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh fi if [[ -f $ZSH_POLYJUICE_PLUGINS_PATH/fzf-tab/fzf-tab.plugin.zsh ]]; then - source $ZSH_POLYJUICE_PLUGINS_PATH/fzf-tab/fzf-tab.plugin.zsh # relies on fzf itself and zsh-autosuggestions plugin + source $ZSH_POLYJUICE_PLUGINS_PATH/fzf-tab/fzf-tab.plugin.zsh # relies on fzf itself and zsh-autocomplete plugin fi # using starship as prompt