-
-
Save dancasttro/87af5c5868f7374161f1 to your computer and use it in GitHub Desktop.
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 PATH=$PATH:. | |
# export PATH=$PATH:/usr/bin | |
export MYSQL_HOME=/usr/local/mysql | |
alias start_mysql='sudo $MYSQL_HOME/bin/mysqld_safe &' | |
alias stop_mysql='sudo $MYSQL_HOME/bin/mysqladmin shutdown' | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Bash | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx # dark background | |
alias ls='ls -laghFG' | |
alias ll='ls -laghFG' | |
alias l='ls -laghFG' | |
alias xcode='open -a xcode' | |
alias text='open -a TextEdit' | |
alias pre='open -a Preview' | |
# Commom Mac programs | |
alias reload='source ~/.bash_profile' | |
alias xcode='open -a xcode' | |
alias mate='open -a TextMate' | |
alias sublime='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
alias text='open -a TextEdit' | |
alias pre='open -a Preview' | |
alias pwdfailed='syslog -k Time ge -24h | egrep -e "sshd|ftpd|afp|vnc"' | |
# Grep | |
alias grep='grep -n' | |
export GREP_OPTIONS='--color=auto' | |
export GREP_COLOR='1;35;40' | |
# Git | |
export PS1="\[\033[38m\]\u\[\033[32m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]$\[\033[00m\] " | |
# export PS1="\[\033[38m\]\u\[\033[32m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first $" | |
git config --global color.ui true' | |
git config --global format.pretty oneline' | |
git config --global core.autocrl input' | |
git config --global core.fileMode true' | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias push='git pull origin master && git push origin master' | |
alias pull='git pull origin master' | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
# Finder: show hiddeh files | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
# killall Finder | |
# Ruby Version Manager | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# Android | |
export ANDROID_SDK=/Applications/android-sdks/ | |
export ANDROID_ROOT=$ANDROID_SDK | |
export ANDROID_HOME=$ANDROID_SDK | |
export ANDROID_NDK=/Applications/android-ndk-r8c | |
export NDK_ROOT=$ANDROID_NDK | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment