11 lines
146 B
Bash
11 lines
146 B
Bash
#!/bin/sh
|
|
|
|
# run vim -R if available
|
|
if test -f /usr/bin/vim
|
|
then
|
|
exec /usr/bin/vim -R "$@"
|
|
fi
|
|
|
|
# run vi otherwise
|
|
exec /usr/libexec/vi -R "$@"
|