home-config/fish/functions/_tide_find_and_remove.fish

6d16b960ad62f7b1b939841661575efc5856c8d8 · 145 B · 3 lines raw

1 function _tide_find_and_remove -a name list --no-scope-shadowing
2 contains --index $name $$list | read -l index && set -e "$list"[$index]
3 end