fish: fix ec function

This commit is contained in:
lelgenio 2021-02-13 14:24:20 -03:00
parent 66db602d55
commit 0fcc2533f6

View file

@ -105,7 +105,7 @@ end
function edit-config
pushd "{{@@ parent_dir ( _dotdrop_dotpath ) @@}}"
set -l dotfile (git ls-files | wdmenu)
test -z "$dotfile" || exit 1
test -n "$dotfile" || return 1
{{@@ editor @@}} "$dotfile"
popd
end