diff --git a/functions.sh b/functions.sh index 1066442..b655aed 100755 --- a/functions.sh +++ b/functions.sh @@ -246,6 +246,13 @@ function git_prune_branches(){ git branch --merged master | grep -v '^[ * ]*master$' | xargs git branch -d } +fvim() { + if [[ -n "$@" ]]; then + vim `fzf -q $@` + else + vim `fzf` + fi +} # dotfiles user functions if [[ -f $HOME/.dotfiles_functions ]]; then