aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/util/editor.sh
blob: a152ebd1ee76e33c5e6ae150bcdb6b679aceacd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Editor selection

if [ "x$VTERM" = "x" ]; then
    VTERM="xterm"
fi

UZBL_EDITOR="$VISUAL"
if [ -z "$UZBL_EDITOR" ]; then
    if [ -z "$EDITOR" ]; then
        UZBL_EDITOR="$VTERM -e vim"
    else
        UZBL_EDITOR="$VTERM -e $EDITOR"
    fi
fi