Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Last active December 15, 2015 22:09
Show Gist options
  • Save hyeomans/5331180 to your computer and use it in GitHub Desktop.
Save hyeomans/5331180 to your computer and use it in GitHub Desktop.
My bash aliases
##Install elinks
##brew install elinks
alias fact="elinks -dump randomfunfacts.com | sed -n '/^| /p' | tr -d \|"
##Jobs that take too long
alias funspork="fact && spork"
alias gst='git status'
alias glog='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
alias be='bundle exec'
alias rmig='bundle exec rake db:migrate && bundle exec rake db:test:clone'
alias ls='ls -h --color=auto'
alias grep='grep --color=auto'
## get rid of command not found ##
alias cd..='cd ..'
## a quick way to get out of current directory ##
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
##Show open ports
alias ports='netstat -tulanp'
# reboot / halt / poweroff
alias reboot='sudo /sbin/reboot'
alias poweroff='sudo /sbin/poweroff'
alias halt='sudo /sbin/halt'
alias shutdown='sudo /sbin/shutdown'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment