shell(vvs): init
This commit is contained in:
parent
40dfcd9272
commit
71cd51b3c7
1 changed files with 15 additions and 0 deletions
15
.config/shell/bin/vvs
Executable file
15
.config/shell/bin/vvs
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue