Last active
December 15, 2015 22:09
-
-
Save hyeomans/5331180 to your computer and use it in GitHub Desktop.
My bash aliases
This file contains hidden or 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
##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" |
This file contains hidden or 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 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