mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
[breaking change] remove direct reference to fastgit
fastgit may be blocked by GFW (see https://t.me/fastgitchannel/81), so hard-coding its URL is not a good option. Using git URL rewrite feature is a better choice: https://jdhao.github.io/2021/11/27/git_notes_s4/#use-a-git-mirror-site-for-cloning. This is a breaking change, since previously I use hub.fastgit.org as the url, now the url will be default github.com unless the user change it using the above mentioned method to change the cloning URL.
This commit is contained in:
@@ -125,7 +125,7 @@ fi
|
||||
#######################################################################
|
||||
RIPGREP_DIR=$HOME/tools/ripgrep
|
||||
RIPGREP_SRC_NAME=$HOME/packages/ripgrep.tar.gz
|
||||
RIPGREP_LINK="https://hub.fastgit.org/BurntSushi/ripgrep/releases/download/12.0.0/ripgrep-12.0.0-x86_64-unknown-linux-musl.tar.gz"
|
||||
RIPGREP_LINK="https://github.com/BurntSushi/ripgrep/releases/download/12.0.0/ripgrep-12.0.0-x86_64-unknown-linux-musl.tar.gz"
|
||||
if [[ -z "$(command -v rg)" ]] && [[ ! -f "$RIPGREP_DIR/rg" ]]; then
|
||||
echo "Install ripgrep"
|
||||
if [[ ! -f $RIPGREP_SRC_NAME ]]; then
|
||||
@@ -163,7 +163,7 @@ fi
|
||||
#######################################################################
|
||||
CTAGS_SRC_DIR=$HOME/packages/ctags
|
||||
CTAGS_DIR=$HOME/tools/ctags
|
||||
CTAGS_LINK="https://hub.fastgit.org/universal-ctags/ctags.git"
|
||||
CTAGS_LINK="https://github.com/universal-ctags/ctags.git"
|
||||
if [[ ! -f "$CTAGS_DIR/bin/ctags" ]]; then
|
||||
echo "Install ctags"
|
||||
|
||||
@@ -219,10 +219,10 @@ if [[ -d "$NVIM_CONFIG_DIR" ]]; then
|
||||
mv "$NVIM_CONFIG_DIR" "$NVIM_CONFIG_DIR.backup"
|
||||
fi
|
||||
|
||||
git clone --depth=1 https://hub.fastgit.org/jdhao/nvim-config.git "$NVIM_CONFIG_DIR"
|
||||
git clone --depth=1 https://github.com/jdhao/nvim-config.git "$NVIM_CONFIG_DIR"
|
||||
|
||||
echo "Installing packer.nvim"
|
||||
git clone --depth=1 https://hub.fastgit.org/wbthomason/packer.nvim \
|
||||
git clone --depth=1 https://github.com/wbthomason/packer.nvim \
|
||||
~/.local/share/nvim/site/pack/packer/opt/packer.nvim
|
||||
|
||||
echo "Installing nvim plugins, please wait"
|
||||
|
||||
Reference in New Issue
Block a user