fish-shell has renamed `$_` to `$current_cmd`, which breaks .iterm2_shell_integration.fish
This happened in a recent commit and won't be part of a fish-shell release until 3.0.0.
Sadly, my guess is that it means that the
.iterm2_shell_integration.fish script will need to handle both, since support for '$_' was removed in that commit, but the replacement,
$current_cmd doesn't exist before then.
- iTerm2 version: 3.1.5
- OS version: macOS 10.13.3
Detailed steps to reproduce the problem:
- Build and install a version of fish-shell with the https://github.com/fish-shell/fish-shell/commit/d367d57ae.
- Ensure .iterm2_shell_integration.fish is installed and set up.
- Use it for a bit.
What happened: Periodically an error
[: Missing argument at index 2 is spammed.
What should have happened: Not that.