aliases.sh: Update and remove old alias
parent
356f1af84f
commit
f0632827ae
|
@ -15,16 +15,22 @@ 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)
|
||||
}
|
||||
|
||||
# use fzf to cd into a ghq directory
|
||||
fghq(){
|
||||
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 la='exa -l'
|
||||
alias ll='exa -lahg'
|
||||
|
|
Loading…
Reference in New Issue