update
This commit is contained in:
parent
c883d05022
commit
07999e41f9
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user