dotfiles/fish/functions/_tide_find_and_remove.fish

4 lines
145 B
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function _tide_find_and_remove -a name list --no-scope-shadowing
contains --index $name $$list | read -l index && set -e "$list"[$index]
end