using github mirrors to download
This commit is contained in:
@@ -23,7 +23,7 @@ if ! command -v zoxide >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
if ! command -v python >/dev/null 2>&1; then
|
||||
echo "Zoxide is not installed."
|
||||
echo "Python is not installed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -35,7 +35,8 @@ PATH_OHMYZSH_CUSTOM_THEMES="$PATH_OHMYZSH"/custom/themes
|
||||
# git clone oh-my-zsh
|
||||
if [ ! -d "$PATH_OHMYZSH" ]; then
|
||||
echo "Oh My Zsh is not downloaded. Downloading..."
|
||||
git clone https://github.com/ohmyzsh/ohmyzsh.git "$PATH_OHMYZSH"
|
||||
# git clone https://github.com/ohmyzsh/ohmyzsh.git "$PATH_OHMYZSH"
|
||||
git clone https://gitee.com/mirrors/ohmyzsh.git "$PATH_OHMYZSH"
|
||||
else
|
||||
cd "$PATH_OHMYZSH" || exit 2
|
||||
if [ ! -d .git ]; then
|
||||
@@ -50,7 +51,8 @@ fi
|
||||
# git clone zsh-autosuggestions
|
||||
if [ ! -d "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autosuggestions ]; then
|
||||
echo "Zsh Autosuggestions is not downloaded. Downloading..."
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autosuggestions
|
||||
# git clone https://github.com/zsh-users/zsh-autosuggestions.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autosuggestions
|
||||
git clone https://gitee.com/mirrors/zsh-autosuggestions.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autosuggestions
|
||||
else
|
||||
cd "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autosuggestions || exit 1
|
||||
if [ ! -d .git ]; then
|
||||
@@ -65,7 +67,8 @@ fi
|
||||
# git clone zsh-syntax-highlighting
|
||||
if [ ! -d "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-syntax-highlighting ]; then
|
||||
echo "Zsh Syntax Highlighting is not downloaded. Downloading..."
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-syntax-highlighting
|
||||
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-syntax-highlighting
|
||||
git clone https://gitee.com/mirrors/zsh-syntax-highlighting.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-syntax-highlighting
|
||||
else
|
||||
cd "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-syntax-highlighting || exit 1
|
||||
if [ ! -d .git ]; then
|
||||
@@ -80,7 +83,9 @@ fi
|
||||
# git clone zsh-autocomplete
|
||||
if [ ! -d "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autocomplete ]; then
|
||||
echo "Zsh Autocomplete is not downloaded. Downloading..."
|
||||
git clone https://github.com/marlonrichert/zsh-autocomplete.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autocomplete
|
||||
# git clone https://github.com/marlonrichert/zsh-autocomplete.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autocomplete
|
||||
git clone https://gitee.com/mirrors/zsh-autocomplete.git "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autocomplete
|
||||
|
||||
else
|
||||
cd "$PATH_OHMYZSH_CUSTOM_PLUGINS"/zsh-autocomplete || exit 1
|
||||
if [ ! -d .git ]; then
|
||||
@@ -95,7 +100,8 @@ fi
|
||||
# git clone powerlevel10k
|
||||
if [ ! -d "$PATH_OHMYZSH_CUSTOM_THEMES"/powerlevel10k ]; then
|
||||
echo "Powerlevel10k is not downloaded. Downloading..."
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$PATH_OHMYZSH_CUSTOM_THEMES"/powerlevel10k
|
||||
# git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$PATH_OHMYZSH_CUSTOM_THEMES"/powerlevel10k
|
||||
git clone --depth=1 https://gitee.com/gwbeip/powerlevel10k.git "$PATH_OHMYZSH_CUSTOM_THEMES"/powerlevel10k
|
||||
else
|
||||
cd "$PATH_OHMYZSH_CUSTOM_THEMES/powerlevel10k" || exit 1
|
||||
if [ ! -d .git ]; then
|
||||
|
Reference in New Issue
Block a user