Created
March 11, 2011 19:39
-
-
Save danielres/866444 to your computer and use it in GitHub Desktop.
bashrc personal settings
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
#!/bin/bash | |
## BASE ######### | |
#BASH | |
alias ..="cd .." | |
alias j="jobs" | |
#GIT | |
alias gs="git status" | |
function ga { git add $* && gs; } | |
alias gb=" git branch" | |
alias gc=" git commit" | |
alias gd=" git diff" | |
alias gcm=" git commit -m" | |
alias gp=" git push" | |
alias gpo=" git push origin" | |
alias gpom=" git push origin master" | |
alias gco=" git checkout" | |
alias gcob=" git checkout -b" | |
#RAILS | |
alias s=" (bundle exec rails s) &>> log/server.log &" | |
alias ts=" tail -f log/server.log" | |
alias c=" rails c" | |
alias b=" bundle" | |
alias be=" bundle exec" | |
alias bu=" bundle update" | |
#RUBY | |
alias gi=" gem install --no-rdoc --no-ri" | |
#HEROKU | |
alias gph=" git push heroku" | |
alias gphm=" git push heroku master" | |
alias dplp=" (echo '----' & date & gp & bundle exec rake production deploy) &>> log/deploy.log &" | |
#S3 | |
alias s3ls="s3cmd listbuckets" | |
function s3rmr { | |
echo "deleting bucket: $1" | |
s3cmd deleteall $1: | |
s3cmd deletebucket $1 | |
echo "-- buckets:" | |
s3cmd listbuckets | |
} | |
#misc | |
alias n="nano" |
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
## WEBFACTION ##### | |
#APPS | |
alias apps="cd ~/webapps" | |
function ca { cd ~/webapps/$1 && . init.sh && cd $1 } | |
#MEM | |
alias mem="ps -u $USER -o pid,rss,command | awk '{print \$0}{sum+=\$2} END {print \$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment