Skip to content

Instantly share code, notes, and snippets.

@sidedwards
Created December 8, 2016 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidedwards/f5d848719e4713affda427d18af5483d to your computer and use it in GitHub Desktop.
Save sidedwards/f5d848719e4713affda427d18af5483d to your computer and use it in GitHub Desktop.
# grc overides for ls
if $(gls &>/dev/null)
then
alias ls="gls -F --color"
alias l="gls -lAh --color"
alias ll="gls -l --color"
alias la='gls -A --color'
fi
# Easier CD navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
alias .......="cd ../../../../../.."
alias ........="cd ../../../../../../.."
alias .........="cd ../../../../../../../.."
alias ..........="cd ../../../../../../../../.."
alias ...........="cd ../../../../../../../../../.."
alias ............="cd ../../../../../../../../../../.."
alias .............="cd ../../../../../../../../../../../.."
alias ..............="cd ../../../../../../../../../../../../.."
alias -- -="cd -"
alias get='read url; curl "${url}" | vim -'
alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
# WIFI
alias wifion="networksetup -setairportpower en0 on"
alias wifioff="networksetup -setairportpower en0 off"
alias wifilist="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan"
# Tar Compression
alias tarcomp="~/Sources/tarcomp.sh"
alias tardecomp="~/Sources/tardecomp.sh"
# Mac Commands
alias sleep="pmset sleepnow"
alias restart="sudo shutdown -r now"
alias delete="rm -rf"
# Git
alias su='git submodule update --init --recursive'
alias unfuck='git reset HEAD --hard'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment