pure: iTerm2 shell integration broken.

$ fish
functions: Function 'fish_mode_prompt' does not exist
~/.iterm2_shell_integration.fish (line 59):
  functions -c fish_mode_prompt iterm2_fish_mode_prompt
  ^
from sourcing file ~/.iterm2_shell_integration.fish
	called on line 7 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
	called during startup


       functions - print or erase functions

   Synopsis
       functions [ -a | --all ] [ -n | --names ]
       functions [ -D | --details ] [ -v ] FUNCTION
       functions -c OLDNAME NEWNAME
       functions -d DESCRIPTION FUNCTION
       functions [ -e | -q ] FUNCTIONS...

functions: Type 'help functions' for related documentation

fish: Unknown command 'iterm2_fish_mode_prompt'
~/.iterm2_shell_integration.fish (line 69):
     iterm2_fish_mode_prompt
     ^
in function 'fish_mode_prompt'
	called on standard input

in command substitution
	called on standard input

~
❯
❯ echo $pure_version
1.13.0
fish: Unknown command 'iterm2_fish_mode_prompt'
~/.iterm2_shell_integration.fish (line 69):
     iterm2_fish_mode_prompt
     ^
in function 'fish_mode_prompt'
	called on standard input

in command substitution
	called on standard input


~
❯

my config.fish:

test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I have installed it through fisher.

yeah, so other themes I used had fish_mode_prompt.fish with empty fish_mode_prompt function

Sorry for my late reply. Defining empty fish_mode_prompt function in my config.fish helps.

@edouard-lopez actually, removing the file fish_mode_prompt.fish helps

We just need to define dummy fish_mode_prompt function or remove this empty file altogether. Although I recall that iTerm marker will be misplaced. Perhaps, we should consider to add custom support for it to align it properly.

@JunJi-JiaYue while I’m looking into it, you can remove fish_mode_prompt.fish from functions folder to fix it locally if you don’t want to wait for a patch.