aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Tassilo Horn <tassilo@member.fsf.org>2009-07-11 10:51:13 +0200
committerGravatar Tassilo Horn <tassilo@member.fsf.org>2009-07-11 10:51:13 +0200
commitbbe8e80c26a08c1c3f7531b7f8673e6941bc2c84 (patch)
tree641f5b4d1ea300ef1bf071e32d6e6cfd43ff70a3 /examples
parent9a32a5f8c8d18d143cf8b4a89531c866679026c7 (diff)
Respect the value of $VISUAL for the formfiller.sh if it is set.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/uzbl/scripts/formfiller.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/data/uzbl/scripts/formfiller.sh b/examples/data/uzbl/scripts/formfiller.sh
index bbb9d1a..3d50a7f 100755
--- a/examples/data/uzbl/scripts/formfiller.sh
+++ b/examples/data/uzbl/scripts/formfiller.sh
@@ -16,8 +16,10 @@ keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/forms
[ -d "`dirname $keydir`" ] || exit 1
[ -d "$keydir" ] || mkdir "$keydir"
-#editor=gvim
-editor='urxvt -e vim'
+editor=${VISUAL}
+if [[ -z ${editor} ]]; then
+ editor='urxvt -e vim'
+fi
config=$1; shift
pid=$1; shift