On iTerm2 load:
Last login: ... on ...
function: Illegal function name '-v'
~/.iterm2_shell_integration.fish (line 86): function -v _ underscore_change
if [ x$_ = xfish ]
^
from sourcing file ~/.iterm2_shell_integration.fish
called on line 38 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
called during startup
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
⋊> ~
~/.config/fish/config.fish:38
:
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
Fish shell version:
⋊> ~ fish -v
fish, version 2.5.0
function
builtin was rewritten last November to remove an ambiguity and fix a bug in how options are parsed (see commit 320cb6857). As part of that work we decided to mandate that the function name must appear first. Sorry about the trouble that has caused you. I'll check with the iTerm2 project to see if they have already adapted to that change in fish and work with them to do so if not.