aboutsummaryrefslogtreecommitdiffstats
path: root/bin/editor
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-03-02 14:58:19 +0000
committerNicolas Vigier <boklm@mageia.org>2013-03-02 14:58:19 +0000
commitd7b6758d2c7f91762cf2da980aa11d76314256d4 (patch)
treef375e78d44e90a9aecc9af644e51e7d4988a0068 /bin/editor
parent450f70c8bdff7e3868a09cf016d5579021b457bb (diff)
downloadcommon-data-d7b6758d2c7f91762cf2da980aa11d76314256d4.tar
common-data-d7b6758d2c7f91762cf2da980aa11d76314256d4.tar.gz
common-data-d7b6758d2c7f91762cf2da980aa11d76314256d4.tar.bz2
common-data-d7b6758d2c7f91762cf2da980aa11d76314256d4.tar.xz
common-data-d7b6758d2c7f91762cf2da980aa11d76314256d4.zip
bin/editor: try using $VISUAL and $EDITOR
Diffstat (limited to 'bin/editor')
-rwxr-xr-xbin/editor2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/editor b/bin/editor
index 057b977..145fffb 100755
--- a/bin/editor
+++ b/bin/editor
@@ -10,6 +10,8 @@ exec_editor() {
}
exec_editor "$TEXTEDITOR" "$@"
+exec_editor "$VISUAL" "$@"
+exec_editor "$EDITOR" "$@"
[ -n "$GNOME_DESKTOP_SESSION_ID" ] && exec_editor gedit "$@"
[ -n "$KDE_FULL_SESSION" ] && exec_editor kwrite "$@"
exec_editor kwrite "$@"