This commit is contained in:
陆柯 2019-10-03 08:19:15 +08:00
parent e483002ecb
commit a325866d26
4 changed files with 18 additions and 0 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

14
setup-node-by-nvm.sh Normal file
View File

@ -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 安装完毕!##################"