aliases.sh: Update and remove old alias

main
earnest ma 2022-02-20 18:22:21 -05:00
parent 356f1af84f
commit f0632827ae
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 12 additions and 6 deletions

View File

@ -15,14 +15,20 @@ 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)
}
# use fzf to cd into a ghq directory # use fzf to cd into a ghq directory
fghq(){ fghq(){
cd $(ghq root)/$(ghq list | fzf) cd $(ghq root)/$(ghq list | fzf)
}
# use fzf to open a VSCodium project
fcode(){
codium $(ghq root)/$(ghq list | fzf)
}
# use fzf to open a file in $EDITOR or neovim
ffe() {
fname=$(fzf) || return
${EDITOR:-nvim} "$fname"
} }
alias ls='exa' # -ag alias ls='exa' # -ag