Last active
October 12, 2015 20:17
-
-
Save FrancisVarga/4081366 to your computer and use it in GitHub Desktop.
my .profile stuff
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
# ---- crwd-tools ---- | |
LANG="en_US.UTF-8" | |
export LANG | |
LC_ALL="en_US.UTF-8" | |
export LC_ALL | |
LC_CTYPE="UTF-8" | |
export LC_CTYPE | |
PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH | |
export PATH | |
# ---- | |
alias ls="ls -la" | |
alias ia="open -a 'iA Writer'" | |
# composer stuff | |
alias compupd="composer.phar update" | |
alias compinst="composer.phar install" | |
alias ip="dig +short myip.opendns.com @resolver1.opendns.com" | |
alias localip="ipconfig getifaddr en1" | |
alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //'" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" # `cd` is probably faster to type though | |
alias -- -="cd -" | |
alias g="git" | |
alias h="history" | |
alias v="vim" | |
alias m="mate ." | |
alias s="sublime ." | |
alias o="open" | |
alias oo="open ." | |
alias hist='history | grep $1' #Requires one input | |
alias update='sudo softwareupdate -i -a; brew update; gem update' | |
# View HTTP traffic | |
alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'" | |
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\"" | |
# Empty the Trash on all mounted volumes and the main HDD | |
# Also, clear Apple’s System Logs to improve shell startup speed | |
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" | |
# Stuff I never really use but cannot delete either because of http://xkcd.com/530/ | |
alias stfu="osascript -e 'set volume output muted true'" | |
alias pumpitup="osascript -e 'set volume 7'" | |
alias louder="osascript -e 'set volume 3'" | |
alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'" | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment