forked from xfanwu/oh-my-zsh-custom-xxf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias.zsh
29 lines (24 loc) · 898 Bytes
/
alias.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# built-in servers
alias pysvr="python -m SimpleHTTPServer 8000"
alias rubysvr="ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 3001, :DocumentRoot => Dir.pwd).start'"
alias nodesvr="hs -p 8000"
# git
alias gco="git checkout"
alias gcm="git commit"
alias gcma="git ci --amend -m"
alias gpl="git pull"
alias gps="git push"
# docker
alias docker-rm-exited='docker rm $(docker ps -qa --no-trunc --filter "status=exited")'
# others
alias cl="clear"
alias vim="mvim"
alias srczshrc="source ~/.zshrc"
# ssh
alias sshawsjp="ssh -i ~/.ssh/aws-jp-free-for-one-year-20180517.pem ubuntu@aws-jp-ss"
alias sshawsjpfgg="ssh -i ~/.ssh/aws-jp-wxf-fgg-free-2019-01-10.pem ubuntu@aws-jp-ss-wxffgg"
alias sshfgg="ssh ubuntu@fgg-jumper -p 23333"
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"