up
This commit is contained in:
parent
e483002ecb
commit
a325866d26
1
.bashrc
1
.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:
|
||||
|
@ -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
|
@ -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
14
setup-node-by-nvm.sh
Normal 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 安装完毕!##################"
|
Loading…
Reference in New Issue
Block a user