From 3cd1f7f8d637e0c0d302aaceaf9b32b466978be7 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sun, 20 Feb 2022 18:04:12 -0500 Subject: [PATCH] aliases.sh: Shortcut ghq list with fzf (cd) --- 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 6e95cfb..9a517b3 100644 --- a/shell_common/.config/shell_common/aliases.sh +++ b/shell_common/.config/shell_common/aliases.sh @@ -20,6 +20,11 @@ cghq(){ cd $(ghq root)/$(ghq list | grep "$1" | head -1) } +# use fzf to cd into a ghq directory +fghq(){ + cd $(ghq root)/$(ghq list | fzf) +} + alias ls='exa' # -ag alias la='exa -l' alias ll='exa -lahg'