tide/functions/_tide_find_and_remove.fish
2021-04-10 08:46:10 -07:00

4 lines
144 B
Fish

function _tide_find_and_remove -a name list --no-scope-shadowing
set -l index (contains --index $name $$list) && set -e "$list"[$index]
end