Skip to content

Instantly share code, notes, and snippets.

@Bigcircle
Last active October 11, 2015 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigcircle/3910222 to your computer and use it in GitHub Desktop.
Save Bigcircle/3910222 to your computer and use it in GitHub Desktop.
common command to copy
# 用于导入到服务器~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
alias ..='cd ..'
alias ls='ls -G'
alias la='ls -a'
alias ll='ls -l'
alias cl='clear'
alias m='mkdir'
alias t='touch'
alias p='ps aux| grep -v grep| grep'
alias v='vim'
alias vp="v ~/.bash_profile"
alias sp='source ~/.bash_profile'
alias rmf='rm -rf'
alias ctar='tar zcvf'
alias xtar='tar zxvf'
alias rp="rails c production"
alias tf="tail -f log/production.log"
alias nr="nginx -s reload"
alias yi="yum install -y"
alias vn="v /opt/nginx/conf/nginx.conf"
alias gi="gem install --no-rdoc --no-ri -V"
alias ap="RAILS_ENV=production bundle exec rake assets:precompile"
# git
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gll='git pull'
alias gp='git push'
alias gr='git rm'
alias gd='git diff'
alias gco='git checkout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment