fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerPrepare to not localize private function descriptionsd835c5252

master
462 B16 linesraw
1# localization: tier1
2function __fish_anyeditor
3    set -l editor
4    if set -q VISUAL
5        echo $VISUAL | read -at editor
6    else if set -q EDITOR
7        echo $EDITOR | read -at editor
8    else
9        __fish_echo string join \n -- \
10            (_ 'External editor requested but $VISUAL or $EDITOR not set.') \
11            (_ 'Please set VISUAL or EDITOR to your preferred editor.')
12        return 1
13    end
14    string join \n -- $editor
15    return 0
16end