summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_tide_find_and_remove.fish
blob: 29f21808738acb7390071ea2372100dc3d47f2e5 (plain)
1
2
3
function _tide_find_and_remove -a name list --no-scope-shadowing
    contains --index $name $$list | read -l index && set -e "$list"[$index]
end