tide/functions/_tide_find_and_remove.fish

4 lines
179 B
Fish

function _tide_find_and_remove -a name list --no-scope-shadowing
set -e "$list"[(contains --index $name $$list)] 2>/dev/null # Ignore error if $list doesn't contain $name
end