16 lines
249 B
Bash
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 "$@"
|
|
}
|
|
|