Skip to content

Instantly share code, notes, and snippets.

@VladislavTitov
Created January 31, 2020 12:41
Show Gist options
  • Save VladislavTitov/120f2b900bb0307c485a4ce2c2f98bc4 to your computer and use it in GitHub Desktop.
Save VladislavTitov/120f2b900bb0307c485a4ce2c2f98bc4 to your computer and use it in GitHub Desktop.
alias adog='git log --all --decorate --oneline --graph'
alias graph1="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
alias graph2="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
while IFS="" read -r p || [ -n "$p" ]
do
export PATH="$p:$PATH"
done < ~/my_paths
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[\e[1;37;42m\]\$(git_branch)\[\e[00m\]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment