Add command to cd to git root

This commit is contained in:
Jake Howard 2019-08-20 21:31:51 +01:00
parent 7456a38b50
commit 453b154252
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -4,6 +4,8 @@ eval "$(fasd --init auto)"
# git aliases # git aliases
alias gs="git status" alias gs="git status"
alias gd="git diff" alias gd="git diff"
alias git-root='cd $(git root)'
gh() { gh() {
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
command git clone git@github.com:RealOrangeOne/${1} --recursive && cd ${1} command git clone git@github.com:RealOrangeOne/${1} --recursive && cd ${1}