Last active
June 19, 2018 22:17
-
-
Save nickautomatic/8c46271f61299de0d673bcf763d53831 to your computer and use it in GitHub Desktop.
.aliases (for Bash on Ubuntu on Windows)
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
## Git | |
alias ga='git add' | |
alias gb='git branch --sort=-committerdate' | |
alias gbr="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|'" | |
alias gco='git checkout' | |
alias gcm='git commit -m' | |
alias gcv='git commit -v' | |
alias gd='git diff' | |
alias gl="git log -n 15 --graph --date-order --date=relative --pretty=format:'%C(red)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)(%cr) %C(yellow) %an %C(reset)'" | |
alias gm='git merge' | |
alias gpl='git pull' | |
alias gps='git push' | |
alias gr='git remote' | |
alias grb='git rebase' | |
alias grs='git reset' | |
alias gs='git status' | |
alias gsh='git show' | |
## Ruby | |
alias be="bundle exec" | |
alias rdb="spring rake db:migrate" | |
alias rc="spring rails c" | |
alias rg="spring rails g" | |
alias rgm="spring rails g migration" | |
alias rs="spring rspec" | |
## Bash | |
alias ll='ls -alFh --color' | |
alias x='exit' | |
## Windows executables: | |
alias explore='explorer.exe .' | |
alias explorer='explorer.exe .' | |
alias atom='"/mnt/c/Users/Nick F/AppData/Local/atom/Update.exe" --processStart "atom.exe"' | |
alias subl='"/mnt/c/Program Files/Sublime Text 3/subl.exe"' | |
alias kraken='"/mnt/c/Users/Nick F/AppData/Local/gitkraken/Update.exe" --processStart "gitkraken.exe"' | |
## Locations: | |
alias www='cd /mnt/c/www' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment