mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
add fvim function to feed fzf input to vim
This commit is contained in:
parent
704b145bc4
commit
102d2477d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user