ansible-role--bashrc/files/bashrc.d/70-util-editor.sh

14 lines
236 B
Bash
Raw Normal View History

2015-11-17 11:07:59 +00:00
#!/bin/sh
# Pager detection
2015-11-17 23:57:38 +00:00
for pager in vim nano emacs ; do
2015-11-17 11:07:59 +00:00
if hash $pager 2> /dev/null ; then
export PAGER=$pager
break
fi
done
2021-12-31 12:02:25 +00:00
export EDITOR="vim"
export MARKDOWN_DOC_EDITOR="ghostwriter"
export MARKDOWN_SLIDES_EDITOR="Marp"