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