Add command to cd
to git root
This commit is contained in:
parent
7456a38b50
commit
453b154252
1 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue