nano/SOURCES/nano-default-editor.fish

9 lines
272 B
Fish
Raw Normal View History

2022-05-17 10:45:33 +00:00
# Ensure GNU nano is set as EDITOR if it isn't already set
# This is set as a universal variable so that any other definition
# by the user would win
# Cf. https://fishshell.com/docs/current/index.html#variables-scope
if ! set -q EDITOR;
set -x EDITOR /usr/bin/nano
end