mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-11 12:55:27 +08:00

If I type $ echo $SOME_VARIABLE_WIHT_A_TYPO $ set -S SOME_VARIABLE_WIHT and press tab, I'm always extremely surprised that this completes to $ set -S fish_history which is because $history[1] contains the typo'd variable name. I don't think anyone intends to filter by that last 3-4 history items, so let's remove this pitfall. Note that I usually hit this scenario with undefined variables, not necessarily typos.. "set -S" is usually redundant but it's still quite nice in this case, to rule out any weird empty strings/empty lists.