Last active
October 2, 2019 19:13
-
-
Save netpoetica/7260183 to your computer and use it in GitHub Desktop.
Terminal aliases
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 g="git" | |
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete" | |
alias tree="ls -alR" | |
alias psef= "ps -ef | grep $1" | |
alias printports="lsof | grep TCP " | |
alias devtoolscss="cd ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/" | |
alias python3='nocorrect python3' | |
alias pip3='pip-3.3' | |
alias cltdr="ls -R | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'" | |
alias qserve='python -m SimpleHTTPServer' | |
alias symbolicateapp='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash' | |
alias phpstart="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist" | |
alias phpstop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist" | |
# alias lsn='ls -l | awk \'{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \*2^(8-i));if(k)printf("%0o ",k);print}\'' | |
alias nxdir="cd /usr/local/etc/nginx" | |
alias nxhosts="sudo vim /private/etc/hosts" | |
alias pjdir="cd /usr/local/var/www/" | |
alias xoriginchrome="open -a Google\ Chrome --args --disable-web-security" | |
# ie "prettyjson curl google.com/api/endpoint" | |
prettyJson() { | |
"$@" | python -mjson.tool | |
} | |
# curl headers only | |
headers() { | |
curl -I "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment