shell: add vvw
This commit is contained in:
parent
0e82d8607c
commit
57a60da3a0
1 changed files with 16 additions and 0 deletions
16
.config/shell/functions/vvw
Normal file
16
.config/shell/functions/vvw
Normal 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 "$@"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue