Last active
December 30, 2015 08:29
-
-
Save silviopaganini/7803246 to your computer and use it in GitHub Desktop.
bash
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
#!/bin/bash | |
PS1="\u\e[1;31m \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 gp='git pull origin master' | |
alias gs='git status' | |
alias gc='git pull origin master && git push origin master' | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
export GAE_SDK="/usr/local/google_appengine" | |
export SVN_EDITOR="Sublime Text 2" | |
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/_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 | |
{ | |
sudo 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" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment