From cc35ad8255579b99c7a307dc4d7aeb4415420351 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Fri, 31 Dec 2021 22:12:14 -0500 Subject: [PATCH] ghq cd function --- shell_common/.config/shell_common/aliases.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell_common/.config/shell_common/aliases.sh b/shell_common/.config/shell_common/aliases.sh index ee6237c..6e95cfb 100644 --- a/shell_common/.config/shell_common/aliases.sh +++ b/shell_common/.config/shell_common/aliases.sh @@ -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)" } +# quickly cd into a ghq dir +cghq(){ + cd $(ghq root)/$(ghq list | grep "$1" | head -1) +} + alias ls='exa' # -ag alias la='exa -l' alias ll='exa -lahg'