use nano as fallback editor

这个提交包含在:
AJ ONeal 2018-06-05 01:02:43 -06:00
父节点 cb6d7497f8
当前提交 9a6c3d36f9

查看文件

@ -66,6 +66,9 @@ fi
if [ -z "$my_edit" ]; then if [ -z "$my_edit" ]; then
my_edit=$(basename "$(type -p vi)") my_edit=$(basename "$(type -p vi)")
fi fi
if [ -z "$my_edit" ]; then
my_edit="nano"
fi
set -e set -e
if [ "root" == $(whoami) ] || [ 0 == $(id -u) ]; then if [ "root" == $(whoami) ] || [ 0 == $(id -u) ]; then