aliases.sh: Update and remove old alias
parent
356f1af84f
commit
f0632827ae
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue