Created
September 26, 2012 06:42
-
-
Save Swader/3786460 to your computer and use it in GitHub Desktop.
My .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
alias sudo='sudo ' | |
alias edit='SUDO_EDITOR="open -FWne" sudo -e' | |
alias edit_hosts='edit /etc/hosts' | |
alias edit_httpd='edit /etc/apache2/httpd.conf' | |
alias edit_php='edit /etc/php.ini' | |
alias edit_profile='open -e ~/.profile' | |
alias edit_vhosts='edit /etc/apache2/extra/httpd-vhosts.conf' | |
alias goto_mw='goto_web; cd mindworks' | |
alias goto_web='cd /Users/swader/Sites' | |
alias goto_phpext='sudo open /usr/lib/php/extensions/no-debug-non-zts-20100525' | |
alias killDS='find . -name *.DS_Store -type f -delete' | |
alias killSVN='rm -rf "find . -type d -name .svn"' | |
alias mysql='/usr/local/mysql-5.5.27-osx10.6-x86_64/bin/mysql -u root' | |
alias mysql_run='mysqld --datadir=/usr/local/mysql-5.5.25-osx10.6-x86_64/data/' | |
alias reload_profile='. ~/.profile' | |
alias poweroff='sudo /sbin/shutdown -h now' | |
alias keys_live='sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/' | |
alias keys_kill='sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/' | |
alias gc='git checkout ' | |
alias gitme='gc bruno-zf2dev' | |
alias gitdev='gc development' | |
alias gm='git merge ' | |
alias gmdev='gm development' | |
alias gmme='gm bruno-zf2dev' | |
alias gpo='git push origin' | |
alias gcam='git commit -am ' | |
# Setting for the new UTF-8 terminal support in Lion | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export PATH=$PATH:/usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin | |
function qlf(){ qlmanage -p “$*” >& /dev/null; } | |
alias dir='ls -alv' | |
function cdd() | |
{ | |
if [ "$*" = "" ] | |
then | |
cd | |
else | |
cd "$*"; | |
fi | |
dir; | |
} | |
CDPATH=".:~:~/Sites" | |
alias qf="sudo find / -type f -name " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment