Skip to content

Commit

Permalink
util for *env
Browse files Browse the repository at this point in the history
  • Loading branch information
Matsui Masashi committed Mar 18, 2020
1 parent 09f185e commit cbce8b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ function vi-fzf() {
vim $moveto
}

function nodenv-fzf() {
nodenv versions | fzf --reverse | sed -e 's/* //g' | xargs nodenv local && nodenv version
}
function rbenv-fzf() {
rbenv versions | fzf --reverse | sed -e 's/* //g' | xargs rbenv local && rbenv version
}
function pyenv-fzf() {
pyenv versions | fzf --reverse | sed -e 's/* //g' | xargs pyenv local && pyenv version
}

alias fcd=cd-fzf
alias cr=ghq-fzf
alias fvi=vi-fzf
alias fjs=nodenv-fzf
alias frb=rbenv-fzf
alias fpy=pyenv-fzf

0 comments on commit cbce8b0

Please sign in to comment.