15 lines
285 B
Bash
Executable file
15 lines
285 B
Bash
Executable file
#!/bin/bash
|
|
# Source this and then run `vvs`
|
|
# edit search: find a file and edit it
|
|
|
|
# Requires: fd, fzf
|
|
# Usage: vvs "Search Term"
|
|
|
|
vvs() {
|
|
FILE="$(fd | fzf -1 -q "$1" --layout=reverse --info=inline --height=10%)"
|
|
if [ $? -eq 0 ]; then
|
|
"$EDITOR" "$FILE"
|
|
fi
|
|
}
|
|
|
|
vvs "$@"
|