update
This commit is contained in:
1 parent
c883d05022
commit
07999e41f9
2 files changed
+6
-4
No files matched your search
+5
-3
@@ -50,21 +50,23 @@ personalize() {
|
|||||||
elif $1; then
|
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 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
|
$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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
usage(){
|
usage(){
|
||||||
echo "Usage: $0 [OPTIONS]";
|
echo "Usage: $0 [OPTIONS]";
|
||||||
echo "OPTIONS:";
|
echo "OPTIONS:";
|
||||||
echo " -s skip install";
|
echo " -n no install";
|
||||||
echo " -p personalize only";
|
echo " -p personalize only";
|
||||||
}
|
}
|
||||||
|
|
||||||
DO_INSTALL=true;
|
DO_INSTALL=true;
|
||||||
DO_SYS_CONFIG=true;
|
DO_SYS_CONFIG=true;
|
||||||
while getopts ":sp" OPT; do
|
while getopts ":np" OPT; do
|
||||||
case $OPT in
|
case $OPT in
|
||||||
s)
|
n)
|
||||||
DO_INSTALL=false;
|
DO_INSTALL=false;
|
||||||
;;
|
;;
|
||||||
p)
|
p)
|
||||||
|
|||||||
Reference in new issue
Block a user