Created
July 4, 2013 02:29
-
-
Save hao-ji-xing/5924467 to your computer and use it in GitHub Desktop.
bash_profile backup
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 vi="vim" | |
alias cls="clear" | |
alias ll="ls -l" | |
alias d="cd .." | |
alias dd="cd ../../" | |
alias toaa="cd ~/dev/localdev/aa_svn/branches" | |
alias tofe="cd ~/dev/localdev/aa_svn/SNYU-FE" | |
alias tohsp="cd ~/dev/localdev/aa_svn/SNYU-FE/HSP" | |
alias torepo="cd ~/dev/gitrepo" | |
alias tolab="cd ~/dev/lab" | |
alias editalias="vim ~/.bash_aliases" | |
alias editprofile="vim ~/.bash_profile" | |
alias reprofile="source ~/.bash_profile" | |
alias realias="source ~/.bash_aliases" | |
alias runapp="supervisor app.js" | |
alias edithosts="vim ~/dev/hosts/user.hosts" | |
alias rehosts="sh ~/dev/hosts/genhosts.sh" | |
alias upblog="cd ~/dev/gitrepo/darkfe.github.com/ & git go 'update'" | |
alias totemp="cd ~/dev/temp" | |
alias totemp="cd ~/dev/temp" |
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
# mkdir & cd | |
mkcd(){ | |
mkdir $1 | |
cd $1 | |
} | |
minjs(){ | |
curl --url http://marijnhaverbeke.nl/uglifyjs -d download= --data-urlencode js_code@$1 > $2 | |
} | |
mkalias(){ | |
echo "alias $1=\"$2\"" >> ~/.bash_aliases | |
source ~/.bash_aliases | |
} | |
gitpush(){ | |
git add . | |
git commit -m "$1" | |
git push | |
} | |
source ~/.bash_aliases | |
export PATH=$PATH:/usr/local/share/npm/bin | |
#mysql | |
alias mysqlstart='sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart' | |
alias mysql='/usr/local/mysql/bin/mysql' | |
alias mysqladmin='/usr/local/mysql/bin/mysqladmin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment