17 lines
249 B
Text
17 lines
249 B
Text
|
#!/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 "$@"
|
||
|
}
|
||
|
|