aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-02-06 12:40:58 +0800
committerjdhao <jdhao@hotmail.com>2022-02-06 12:41:23 +0800
commit1b937d80afd662b8665f2389b842ad019ad2f777 (patch)
tree9b3abeda645d02708f552eedb2560bb0b013af2c
parent78a8804f77afdb7a0637d993b2ba1084dc198524 (diff)
chore: update setup script for Linux
-rwxr-xr-xdocs/nvim_setup_linux.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh
index 6d7923b..6a9a6d2 100755
--- a/docs/nvim_setup_linux.sh
+++ b/docs/nvim_setup_linux.sh
@@ -87,21 +87,21 @@ else
fi
#######################################################################
-# Install node and vim-language-server #
+# Install node and js-based language server #
#######################################################################
NODE_DIR=$HOME/tools/nodejs
NODE_SRC_NAME=$HOME/packages/nodejs.tar.gz
# when download speed is slow, we can also use its mirror site: https://mirrors.ustc.edu.cn/node/v15.0.0/
NODE_LINK="https://mirrors.ustc.edu.cn/node/v15.0.0/node-v15.0.0-linux-x64.tar.xz"
if [[ -z "$(command -v node)" ]]; then
- echo "Install Nodejs"
+ echo "Install Node.js"
if [[ ! -f $NODE_SRC_NAME ]]; then
- echo "Downloading nodejs and renaming"
+ echo "Downloading Node.js and renaming"
wget $NODE_LINK -O "$NODE_SRC_NAME"
fi
if [[ ! -d "$NODE_DIR" ]]; then
- echo "Creating nodejs directory under tools directory"
+ echo "Creating Node.js directory under tools directory"
mkdir -p "$NODE_DIR"
echo "Extracting to $HOME/tools/nodejs directory"
tar xvf "$NODE_SRC_NAME" -C "$NODE_DIR" --strip-components 1
@@ -111,7 +111,7 @@ if [[ -z "$(command -v node)" ]]; then
echo "export PATH=\"$NODE_DIR/bin:\$PATH\"" >> "$HOME/.bash_profile"
fi
else
- echo "Nodejs is already installed. Skip installing it."
+ echo "Node.js is already installed. Skip installing it."
fi
# Install vim-language-server