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

11 lines
138 B
Bash
Raw Normal View History

2024-07-12 12:12:40 +00:00
#!/bin/sh
# Pager detection
for pager in vim nano emacs ; do
if hash $pager 2> /dev/null ; then
export PAGER=$pager
break
fi
done