diff options
| author | jdhao <jdhao@hotmail.com> | 2022-02-08 13:08:16 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-02-08 13:11:20 +0800 |
| commit | 15dfccf81ee7e78836d4f65f9a81eb400b0f1b08 (patch) | |
| tree | d967b77a220d726bda7e24bc5ac29bc48badde17 /docs/nvim_setup_linux.sh | |
| parent | 0aed2b42acdf7877ac17c09e1b06759bc6a9e3bf (diff) | |
[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.
Diffstat (limited to 'docs/nvim_setup_linux.sh')
| -rwxr-xr-x | docs/nvim_setup_linux.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh index 6a9a6d2..1f39cc2 100755 --- a/docs/nvim_setup_linux.sh +++ b/docs/nvim_setup_linux.sh @@ -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" |
