Create aliases to change to git root

This commit is contained in:
Andrew Tomaka 2022-01-12 21:42:45 -05:00
parent a1397f2027
commit 437057a1f8
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
hist-details = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
hist-tags = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
most-recent-by-branch = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
root = rev-parse --show-toplevel
[commit]
gpgsign = true

View file

@ -11,6 +11,7 @@ alias ber="bundle exec rake"
alias bet="test-rails"
alias c="clear"
alias cs="toggle-color-mode"
alias cdr="cd $(git root)"
alias dc="docker-compose-call"
alias g="g" # overwrite g alias
alias ga="git add"