update check functions

This commit is contained in:
2026-01-23 10:57:23 +08:00
parent 771604ecba
commit 85a41413a3
4 changed files with 52 additions and 52 deletions

View File

@@ -2,27 +2,27 @@
function check_zsh_polyjuice() {
# check for zsh-autosuggestions
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
if [[ ! -f $ZSH_POLYJUICE_PLUGINS_PATH/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
echo "zsh-autosuggestions is not installed."
fi
# check for zsh-syntax-highlighting
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
if [[ ! -f $ZSH_POLYJUICE_PLUGINS_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
echo "zsh-syntax-highlighting is not installed."
fi
# check for zsh-autocomplete
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-autocomplete/zsh-autocomplete.plugin.zsh ]]; then
if [[ ! -f $ZSH_POLYJUICE_PLUGINS_PATH/zsh-autocomplete/zsh-autocomplete.plugin.zsh ]]; then
echo "zsh-autocomplete is not installed."
fi
# check for fzf-tab
if [[ ! -f $ZSH_PLUGINS_PATH/fzf-tab/fzf-tab.zsh ]]; then
if [[ ! -f $ZSH_POLYJUICE_PLUGINS_PATH/fzf-tab/fzf-tab.zsh ]]; then
echo "fzf-tab is not installed."
fi
# check for oh-my-zsh
if [[ ! -d $ZSH_PLUGINS_PATH/ohmyzsh ]]; then
if [[ ! -d $ZSH_POLYJUICE_PLUGINS_PATH/ohmyzsh ]]; then
echo "oh-my-zsh is not installed."
fi
@@ -45,8 +45,8 @@ function check_zsh_polyjuice() {
if (( ! $+commands[python3] )); then
echo "python3 is not installed."
fi
echo "Using `install_plugins` function to install missing plugins."
echo "Using \`install_plugins\` function to install missing plugins."
}
function check_tools() {