aliases.sh: Shortcut ghq list with fzf (cd)

main
earnest ma 2022-02-20 18:04:12 -05:00
parent b4b4cc1c05
commit 3cd1f7f8d6
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ cghq(){
cd $(ghq root)/$(ghq list | grep "$1" | head -1) 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 ls='exa' # -ag
alias la='exa -l' alias la='exa -l'
alias ll='exa -lahg' alias ll='exa -lahg'