ghq cd function

pull/1/head
earnest ma 2021-12-31 22:12:14 -05:00
parent 9968962bd0
commit cc35ad8255
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ ahbh(){ # I'm not sure if this works
"$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')"..."$(git branch --show-current)" "$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')"..."$(git branch --show-current)"
} }
# quickly cd into a ghq dir
cghq(){
cd $(ghq root)/$(ghq list | grep "$1" | head -1)
}
alias ls='exa' # -ag alias ls='exa' # -ag
alias la='exa -l' alias la='exa -l'
alias ll='exa -lahg' alias ll='exa -lahg'