diff options
author | Tassilo Horn <tassilo@member.fsf.org> | 2009-07-12 19:19:56 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-12 19:19:56 +0200 |
commit | 33e1b2bebad165ef41457847bdfff2a3427c3bb3 (patch) | |
tree | 8b2a8ee752cfda0408256288f729a795592425eb | |
parent | 0e985d44b7a2a86620c878915e480ec9ddb491bf (diff) | |
parent | bbe8e80c26a08c1c3f7531b7f8673e6941bc2c84 (diff) |
use $VISUAL in formfiller.sh
-rw-r--r-- | AUTHORS | 1 | ||||
-rwxr-xr-x | examples/data/uzbl/scripts/formfiller.sh | 7 |
2 files changed, 6 insertions, 2 deletions
@@ -35,6 +35,7 @@ Contributors: Chris van Dijk (quigybo) - work on uzbl_tabbed.py Moritz Lenz - small doc fix Sergey Shepelev (temoto) - doc patch + Tassilo Horn (tsdh) - $VISUAL patch Originaly based on http://trac.webkit.org/browser/trunk/WebKitTools/GtkLauncher/main.c Which is copyrighted: diff --git a/examples/data/uzbl/scripts/formfiller.sh b/examples/data/uzbl/scripts/formfiller.sh index bbb9d1a..10afaba 100755 --- a/examples/data/uzbl/scripts/formfiller.sh +++ b/examples/data/uzbl/scripts/formfiller.sh @@ -16,8 +16,11 @@ 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='gvim' + editor='urxvt -e vim' +fi config=$1; shift pid=$1; shift |