Created
July 5, 2012 23:03
-
-
Save amoslanka/3056994 to your computer and use it in GitHub Desktop.
.bash_profile
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
export EDITOR=subl | |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
export PATH="~/bin:$PATH" | |
# Configure RVM | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
# | |
# Aliases | |
# | |
# Dir tree aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias rmsvn='find . -name .svn -print0 | xargs -0 rm -rf' # Removes all svn dotfiles | |
alias rmpyc="find . -name \"*.pyc\" -exec rm '{}' ';'" # Removes all .pyc files | |
# Git aliases | |
alias gs='git status ' | |
alias ga='git add ' | |
alias gaa='git add -A' # Stage all changes | |
alias gb='git branch ' | |
alias gba='git branch -a' # List all branches | |
alias gc='git commit' | |
alias gcm='git commit -m ' | |
alias gcam='git commit -am ' | |
alias gi='git-info' | |
alias gd='git diff' | |
alias go='git checkout ' | |
alias gl='git log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short ' | |
alias gconfig='$EDITOR .git/config' | |
# Rake aliases | |
alias rt="rake -T" | |
# Rails aliases | |
alias rs="rails s" | |
alias rc="rails c" | |
alias rg="rails g" | |
alias rgm="rails g migration" | |
# Bundler aliases | |
alias bi="bundle install" | |
alias bu="bundle update" | |
# Textmate aliases | |
# alias mate_profile="mate ~/Dropbox/work/bin/profile" | |
alias mate_profile="$EDITOR ~/.bash_profile" | |
alias tm="cd /Users/amoslanka/Library/Application\ Support/TextMate/Pristine\ Copy" | |
# Nginx aliases | |
alias nginx_start="sudo nginx" | |
alias nginx_stop="sudo nginx -s stop" | |
alias nginx_restart="nginx_stop; nginx_start;" | |
# alias nginx_config="mate /opt/local/etc/nginx/nginx.conf" | |
# alias nginx_log="tail -f /opt/local/var/log/nginx/access.log" | |
# alias nginx_errors="tail -f /opt/local/var/log/nginx/error.log" | |
# Mysql aliases | |
alias mysql_start="sudo mysql start" | |
alias mysql_stop="sudo mysql stop" | |
alias mysql_restart="sudo mysql restart" | |
# PostgreSQL aliases | |
alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
alias pg_stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast" | |
# PHP aliases | |
# alias php_start="/usr/local/Cellar/php/5.3.8/bin/php-cgi -b 9000" | |
# Vagrant aliases | |
alias v="vagrant" | |
# Checksum aliases | |
# alias sha256="shasum -a 256" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment