diff options
Diffstat (limited to '.config/fish/functions/_tide_find_and_remove.fish')
-rw-r--r-- | .config/fish/functions/_tide_find_and_remove.fish | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/fish/functions/_tide_find_and_remove.fish b/.config/fish/functions/_tide_find_and_remove.fish new file mode 100644 index 00000000..29f21808 --- /dev/null +++ b/.config/fish/functions/_tide_find_and_remove.fish @@ -0,0 +1,3 @@ +function _tide_find_and_remove -a name list --no-scope-shadowing + contains --index $name $$list | read -l index && set -e "$list"[$index] +end |