shell: add vvw

This commit is contained in:
PowerUser64 2024-01-17 17:32:07 -08:00
parent 0e82d8607c
commit 57a60da3a0

View file

@ -0,0 +1,16 @@
#!/bin/sh
# vvw - "edit (vim) which"
# edit a binary in the path
# usage:
# vvw dotfiles-update.sh nvidia-offload
vvw() {
t=0
while [ $# -gt $t ]; do
set -- "$@" "$(which "$1")"
shift
t=$((t+1))
done
$EDITOR "$@"
}