Created
November 20, 2010 12:51
-
-
Save samir/707798 to your computer and use it in GitHub Desktop.
Base for create .bash_profile for OS X
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 APXS2=`which apxs` | |
export CFLAGS="-arch x86_64 -O2" | |
export ARCHFLAGS="-arch x86_64" | |
export EDITOR='mate -w' | |
export CLICOLOR=1 | |
export TERM=xterm-color | |
export LSCOLORS=DxGxcxdxCxegedabagacad | |
export LC_CTYPE=en_US.UTF-8 | |
export RUBYOPT=rubygems | |
export RAILS_ENV="development" | |
# -------------------------------------------------------- | |
# Aliases | |
alias ls='ls -lahG' | |
alias tf='tail -f' | |
alias rehash='source ~/.bash_profile' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias rm='rm -i' | |
alias df='df -h' | |
alias du='du -h' | |
alias top='top -o cpu' | |
# -------------------------------------------------------- | |
# Utilities | |
# Scan all .DS_Store from current directory and remove them | |
function delete_ds_store { | |
echo "Cleaning all .DS_Store files from `pwd`" | |
find . -name ".DS_Store" -depth -exec rm {} \; | |
} | |
# SVN Diff with color | |
# requires colordiff (http://colordiff.sourceforge.net/) | |
# install with homebrew: $>brew search colordiff | |
function svndiff { | |
svn diff "${@}" | colordiff | |
} | |
# Shortcut for search keyword inner files | |
function search { | |
grep -r "${@}" . | |
} | |
# -------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment