diff options
| author | jdhao <jdhao@hotmail.com> | 2021-07-18 18:14:03 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-07-18 18:14:03 +0800 |
| commit | b5162f02b893cbef6e41994ed7a53873f74be33a (patch) | |
| tree | d80f001764470f0c375d247d5b87d1afa125ee1d /docs | |
| parent | ba490516e79dcf6e2ed77b58fddd2fb81dcb370c (diff) | |
| parent | 7ab5e96b7768412151b8cb7fcd35d090d0ba6225 (diff) | |
Merge branch 'nvim-lsp' of https://github.com/jdhao/nvim-config into nvim-lsp
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/Nvim_setup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/Nvim_setup.sh b/docs/Nvim_setup.sh index 017e7de..89e6aca 100755 --- a/docs/Nvim_setup.sh +++ b/docs/Nvim_setup.sh @@ -96,7 +96,7 @@ NODE_LINK="https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-x64.tar.xz" mkdir -p $HOME/tools # extract node to a custom directory, the directory should exist. -tar xvf node-v14.15.4-linux-x64.tar.xz --directory=$HOME/tools +# tar xvf node-v14.15.4-linux-x64.tar.xz --directory=$HOME/tools if [[ -z "$(command -v node)" ]]; then echo "Install Nodejs" @@ -109,11 +109,11 @@ if [[ -z "$(command -v node)" ]]; then echo "Creating nodejs directory under tools directory" mkdir -p "$NODE_DIR" echo "Extracting to $HOME/tools/nodejs directory" - tar zxvf "$NODE_SRC_NAME" -C "$NODE_DIR" --strip-components 1 + tar xvf "$NODE_SRC_NAME" -C "$NODE_DIR" --strip-components 1 fi if [[ "$ADD_TO_SYSTEM_PATH" = true ]] && [[ "$USE_BASH_SHELL" = true ]]; then - echo "export PATH=\"$NVIM_DIR/bin:\$PATH\"" >> "$HOME/.bash_profile" + echo "export PATH=\"$NODE_DIR/bin:\$PATH\"" >> "$HOME/.bash_profile" fi else echo "Nodejs is already installed. Skip installing it." |
