aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/visual.sh
blob: 19c8f49050dae12fd24460c3944309699bd43548 (plain) (blame)
1
2
3
4
5
6
7
8
# For a visual editor, use Vim explicitly if we've got it, but otherwise any vi
# implementation will be fine
if command -v vim >/dev/null 2>&1 ; then
    VISUAL='vim'
else
    VISUAL='vi'
fi
export VISUAL