tide/functions/_tide_find_and_remove.fish

4 lines
145 B
Fish
Raw Permalink Normal View History

function _tide_find_and_remove -a name list --no-scope-shadowing
2021-09-09 04:15:45 +03:00
contains --index $name $$list | read -l index && set -e "$list"[$index]
end