aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/editor.sh
blob: 5d6b249e5ab1c19001d361e3e79c1f7d04bc2e97 (plain) (blame)
1
2
3
4
5
6
7
# Set command-line editor; ed if we've got it (!), but ex will do fine
if command -v ed >/dev/null 2>&1 ; then
    EDITOR=ed
else
    EDITOR=ex
fi
export EDITOR