From 8600374371f91843064441113f4023cda1730877 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 18 Mar 2023 16:40:57 -0300 Subject: General fish fixes and updates --- .config/fish/functions/_tide_find_and_remove.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .config/fish/functions/_tide_find_and_remove.fish (limited to '.config/fish/functions/_tide_find_and_remove.fish') 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 -- cgit v1.2.3