fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d835c5252
master
1# localization: tier1 2function __fish_anyeditor 3set -l editor 4if set -q VISUAL 5echo $VISUAL | read -at editor 6else if set -q EDITOR 7echo $EDITOR | read -at editor 8else 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.' ) 12return 1 13end 14string join\n --$editor 15return 0 16end