Minor startup speed improvement

This commit is contained in:
Ilan Cosman 2021-04-10 08:46:10 -07:00
parent c7d9679b28
commit e98a412bad

View File

@ -1,3 +1,3 @@
function _tide_find_and_remove -a name list --no-scope-shadowing
set -e "$list"[(contains --index $name $$list)] 2>/dev/null # Ignore error if $list doesn't contain $name
set -l index (contains --index $name $$list) && set -e "$list"[$index]
end