This commit is contained in:
hl 2025-04-01 23:30:19 +08:00
parent c883d05022
commit 07999e41f9
2 changed files with 6 additions and 4 deletions

View File

@ -50,21 +50,23 @@ personalize() {
elif $1; then
$AWD/install-release.sh -r zsh-users/zsh-completions -k tarball -o completions.tar.gz -d "0 src" -p /usr/local/share/zsh/site-functions
$AWD/install-release.sh -r ajeetdsouza/zoxide -m x86_64-unknown -p /usr/local/bin -n zoxide -f
else
sed -i -E 's/.*zoxide.*/# eval "$(zoxide init --cmd cd zsh)"/g' $HOME/.zshrc
fi
}
usage(){
echo "Usage: $0 [OPTIONS]";
echo "OPTIONS:";
echo " -s skip install";
echo " -n no install";
echo " -p personalize only";
}
DO_INSTALL=true;
DO_SYS_CONFIG=true;
while getopts ":sp" OPT; do
while getopts ":np" OPT; do
case $OPT in
s)
n)
DO_INSTALL=false;
;;
p)

View File

@ -92,7 +92,7 @@ config(){
if $1; then
$AWD/configure.sh
else
$AWD/configure.sh -s
$AWD/configure.sh -n
fi
}