dotfiles/.config/shell/functions/vvw
2024-01-17 17:32:07 -08:00

16 lines
249 B
Bash

#!/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 "$@"
}