Update zi

This commit is contained in:
David Tomaschik
2026-02-17 13:42:53 -08:00
parent 487dbe3751
commit cdbc40d1e8

View File

@@ -15,6 +15,10 @@ if [[ -d "${HOME}/.zi" ]]; then
# Enable zi completions # Enable zi completions
autoload -Uz _zi autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi (( ${+_comps} )) && _comps[zi]=_zi
# Add zi modules here
zi ice ver"53da496"
zi load "wfxr/forgit"
fi fi
else else
# Path for the acknowledgment file. # Path for the acknowledgment file.
@@ -31,11 +35,11 @@ else
echo "Error: git is not installed. Please install git to continue." >&2 echo "Error: git is not installed. Please install git to continue." >&2
return 1 return 1
fi fi
# Create the directory structure # Create the directory structure
echo "Creating installation directory..." echo "Creating installation directory..."
mkdir -p "${HOME}/.zi/bin" mkdir -p "${HOME}/.zi/bin"
# Perform a shallow clone of the repository # Perform a shallow clone of the repository
echo "Cloning the zi repository..." echo "Cloning the zi repository..."
if command git clone --depth 1 https://github.com/z-shell/zi.git "${HOME}/.zi/bin"; then if command git clone --depth 1 https://github.com/z-shell/zi.git "${HOME}/.zi/bin"; then
@@ -57,7 +61,7 @@ else
touch "${ack_file}" touch "${ack_file}"
echo "To re-enable the warning, remove the file: ${ack_file}" echo "To re-enable the warning, remove the file: ${ack_file}"
} }
echo "zi plugin manager is not installed. Run '_install_zi' to install, or '_ack_no_zi' to suppress this warning." echo "zi plugin manager is not installed. Run '_install_zi' to install, or '_ack_no_zi' to suppress this warning."
fi fi
fi fi