Respect the value of $VISUAL for the formfiller.sh if it is set.
authorTassilo Horn <tassilo@member.fsf.org>
Sat, 11 Jul 2009 08:51:13 +0000 (10:51 +0200)
committerTassilo Horn <tassilo@member.fsf.org>
Sat, 11 Jul 2009 08:51:13 +0000 (10:51 +0200)
examples/data/uzbl/scripts/formfiller.sh

index bbb9d1a..3d50a7f 100755 (executable)
@@ -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