1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-25 13:01:31 +01:00

add fvim function to feed fzf input to vim

This commit is contained in:
bretello 2020-04-28 18:18:21 +02:00
parent 704b145bc4
commit 102d2477d5

View File

@ -246,6 +246,13 @@ function git_prune_branches(){
git branch --merged master | grep -v '^[ * ]*master$' | xargs git branch -d 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 # dotfiles user functions
if [[ -f $HOME/.dotfiles_functions ]]; then if [[ -f $HOME/.dotfiles_functions ]]; then