Created
January 6, 2017 19:59
-
-
Save kitsguru/bf78d9134e99b7c01798ab5328ff80e1 to your computer and use it in GitHub Desktop.
aliases for bash
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
| ### Aliases | |
| ## ssh to dev server | |
| alias sshj='ssh jeff@git.dev.lan' | |
| alias sshg='ssh git@git.dev.lan' | |
| ## project scripts | |
| alias cnp="~/bin/createproject2.sh" | |
| alias installPackages="~/bin/installPackages.sh" | |
| alias installbower="~/bin/installbower.sh" | |
| alias makecmsb="~/bin/makecmsb.sh" | |
| alias clearbuf="echo -e '\0033\0143'" | |
| alias updatecmsb="~/bin/updatecmsb.sh" | |
| alias copymaster="~/bin/copymaster.sh" | |
| ## Use a long listing format ## | |
| alias ls='ls --color' | |
| alias ll='ls -la --color' | |
| alias q='exit' | |
| ## for cms sites to clear the cache | |
| alias purge="./purge.sh" | |
| # GIT Aliases | |
| alias gcl='git clone' | |
| alias ga='git add' | |
| alias gall='git add .' | |
| alias gaa='git add -A' | |
| alias gus='git reset HEAD' | |
| alias gm="git merge --no-ff" | |
| alias g='git' | |
| alias get='git' | |
| alias gst='git status' | |
| alias gs='git status' | |
| alias gss='git status -s' | |
| alias gp='git push' | |
| alias gpo='git push origin' | |
| alias gdv='git diff -w "$@"' | |
| alias gc='git commit -v' | |
| alias gca='git commit -v -a' | |
| alias gcm='git commit -v -m' | |
| alias gci='git commit --interactive' | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias gco='git checkout' | |
| alias gll='git log --graph --pretty=oneline --abbrev-commit' | |
| alias gg="git log --graph --pretty=format:'%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative --all" | |
| alias gld='git log --graph --pretty=oneline --abbrev-commit --decorate' | |
| # aliases to turn off color | |
| alias bower='bower --no-color' | |
| alias grunt='grunt --no-color' | |
| alias yo='yo --no-color' | |
| alias clonecms='git clone --depth 1 git@git.dev.lan:/repo/jas.git html' | |
| alias dochangelog="git log --date=short --pretty=format:'%cd%n* %s%n %b' > log.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment