projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a32a5f
)
Respect the value of $VISUAL for the formfiller.sh if it is set.
author
Tassilo Horn
<tassilo@member.fsf.org>
Sat, 11 Jul 2009 08:51:13 +0000
(10:51 +0200)
committer
Tassilo Horn
<tassilo@member.fsf.org>
Sat, 11 Jul 2009 08:51:13 +0000
(10:51 +0200)
examples/data/uzbl/scripts/formfiller.sh
patch
|
blob
|
history
diff --git
a/examples/data/uzbl/scripts/formfiller.sh
b/examples/data/uzbl/scripts/formfiller.sh
index
bbb9d1a
..
3d50a7f
100755
(executable)
--- 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