Created
March 16, 2015 15:53
-
-
Save silviopaganini/be15d5add80db1ad1901 to your computer and use it in GitHub Desktop.
bash_profile
This file contains hidden or 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
| #!/bin/bash | |
| PS1="\u\e[1;30m \W\e[m $ " | |
| alias ll="ls -lahG" | |
| alias sniff="sudo ngrep -W byline -d 'en0' -t '^(GET|POST) ' 'tcp and port 8888'" | |
| alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start' | |
| alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop' | |
| alias f='cd /Users/silviopaganini/Workspace/fluuu.id' | |
| alias sl='cd /Users/silviopaganini/Workspace/slikland/dotcom' | |
| alias githost='cd /Users/silviopaganini/Workspace/UNIT9/_admin' | |
| alias 9='cd /Users/silviopaganini/Workspace/UNIT9' | |
| alias gp='git pull origin master' | |
| alias gs='git status' | |
| alias gc='git pull origin master && git push origin master' | |
| alias vlc='/Applications/VLC.app/Contents/MacOS/VLC' | |
| export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
| export GAE_SDK="/usr/local/google_appengine" | |
| alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" | |
| function ip | |
| { | |
| ipconfig getifaddr en1 | |
| } | |
| function server | |
| { | |
| python -m SimpleHTTPServer 8000 | |
| } | |
| function fixHosts | |
| { | |
| sudo python /Users/silviopaganini/Workspace/_Study/python/hosts/fixHosts.py | |
| } | |
| function reload | |
| { | |
| sudo su - silviopaganini | |
| } | |
| function removeSVN | |
| { | |
| find ./ -name ".svn" | xargs rm -Rf | |
| echo "SVN files removed!" | |
| } | |
| function removeDS | |
| { | |
| find ./ -name ".DS_Store" | xargs rm -Rf | |
| echo "SVN files removed!" | |
| } | |
| function sub | |
| { | |
| open -a "Sublime Text" $1 | |
| } | |
| function coffeeWatch | |
| { | |
| coffee -o js/ -cw src/ | |
| } | |
| function sassWatch | |
| { | |
| sass --watch $1 $2 | |
| } | |
| function push | |
| { | |
| git pull | |
| git push origin | |
| } | |
| function allowFiles | |
| { | |
| chmod -R 755 *.* | |
| } | |
| function locale | |
| { | |
| exec defaults write com.google.Chrome AppleLanguages "($1)" | |
| } | |
| ## | |
| # Your previous /Users/silviopaganini/.bash_profile file was backed up as /Users/silviopaganini/.bash_profile.macports-saved_2012-08-16_at_12:05:36 | |
| ## | |
| # MacPorts Installer addition on 2012-08-16_at_12:05:36: adding an appropriate PATH variable for use with MacPorts. | |
| export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
| export NODE_PATH="/usr/local/bin/node" | |
| export PATH="/Users/silviopaganini/Workspace/frameworks/adt-bundle-mac-x86_64-20140702/sdk/tools:$PATH" | |
| # {{{ | |
| # Node Completion - Auto-generated, do not touch. | |
| shopt -s progcomp | |
| for f in $(command ls ~/.node-completion); do | |
| f="$HOME/.node-completion/$f" | |
| test -f "$f" && . "$f" | |
| done | |
| # }}} | |
| export NODE_PATH=/usr/local/bin/node:/usr/local/lib/node_modules | |
| ## | |
| # Your previous /Users/silviopaganini/.bash_profile file was backed up as /Users/silviopaganini/.bash_profile.macports-saved_2015-01-06_at_10:38:42 | |
| ## | |
| # MacPorts Installer addition on 2015-01-06_at_10:38:42: adding an appropriate PATH variable for use with MacPorts. | |
| export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
| # Finished adapting your PATH environment variable for use with MacPorts. | |
| export PATH="$PATH:/Users/silviopaganini/Workspace/playground/depot_tools/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment