diff --git a/.bashrc b/.bashrc index 1a238f5..a71c54c 100644 --- a/.bashrc +++ b/.bashrc @@ -34,6 +34,7 @@ export CVS_RSH=ssh # Define aliases: # Always list long directory and time. alias ll='ls -al --color=auto' # --time-style=long-iso --color=auto' +alias l='ll' # Think twice before deletion. Though troublesome but strongly recommended! alias rm='rm -i' # Request X tunneling for SSH: diff --git a/setup-home.sh b/setup-home.sh index 31cf684..4ac0bc1 100644 --- a/setup-home.sh +++ b/setup-home.sh @@ -8,3 +8,4 @@ ln -s ~/linux.config/.emacs ~/ ln -s ~/linux.config/.emacs.lisp ~/ ln -s ~/linux.config/.bashrc ~/ ln -s ~/linux.config/.bash_profile ~/ +. ~/.bahrc \ No newline at end of file diff --git a/setup-mongodb.sh b/setup-mongodb.sh index dfa4dbf..c48a0da 100644 --- a/setup-mongodb.sh +++ b/setup-mongodb.sh @@ -14,3 +14,5 @@ curl https://www.mongodb.org/static/pgp/server-$Version.asc | sudo apt-key add - echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/$Version main" | sudo tee /etc/apt/sources.list.d/mongodb-org-$Version.list sudo apt update sudo apt install mongodb-org -y +echo "Enable as system service..." +sudo systemctl enable mongod diff --git a/setup-node-by-nvm.sh b/setup-node-by-nvm.sh new file mode 100644 index 0000000..850186e --- /dev/null +++ b/setup-node-by-nvm.sh @@ -0,0 +1,14 @@ +apt install curl -y + +echo "######## 安装 nvm ############################" +curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash + +echo "######## 启用 nvm ############################" +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" + +echo "######## 安装最新版 node #####################" +nvm install node + +echo "######## node/npm 安装完毕!##################"