Last active
October 11, 2015 19:48
-
-
Save Bigcircle/3910222 to your computer and use it in GitHub Desktop.
common command to copy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 用于导入到服务器~/.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