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

14 lines
236 B
Bash

#!/bin/sh
# Pager detection
for pager in vim nano emacs ; do
if hash $pager 2> /dev/null ; then
export PAGER=$pager
break
fi
done
export EDITOR="vim"
export MARKDOWN_DOC_EDITOR="ghostwriter"
export MARKDOWN_SLIDES_EDITOR="Marp"