mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Update zi
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user