IlanCosman / tide

🌊 The ultimate Fish prompt.
MIT License
2.73k stars 103 forks source link

Message printed to iTerm2 after every input #499

Open LorenzoManfrediSegato opened 3 months ago

LorenzoManfrediSegato commented 3 months ago

Describe the bug

After entering a git directory, every command/input entered into iTerm 2 yields the following message printed:

set: -e: option requires an argument

~/.config/fish/functions/_tide_pwd.fish (line 23):
            set -e glob[(contains -i $parent_dir/$dir_section/ $glob)] # This is faster than inverse string match
            ^
in function '_tide_pwd'
    called on line 1 of file ~/.config/fish/functions/fish_prompt.fish
in command substitution
    called on line 1 of file ~/.config/fish/functions/fish_prompt.fish
in command substitution
    called on line 16 of file ~/.config/fish/functions/fish_prompt.fish
in function 'fish_prompt'
in command substitution
(Type 'help set' for related documentation)

Typing "help set" directs me back to the most recent existing open browser tab

Steps to reproduce

  1. cd into a git directory
  2. run input commands

Screenshots

Video: https://github.com/IlanCosman/tide/assets/51752036/7d7c0be6-f3e3-46dc-826c-40b8c49a85cd

Environment

Output of tide bug-report:

fish version: 3.6.1
tide version: 6.1.1
term: xterm-256color
os: macOS
terminal emulator: iTerm2
fish startup: 5.54 millis
fisher plugins: jorgebucaran/fisher ilancosman/tide@v6

Additional context

ALuck0 commented 1 month ago

I'm also running into this same issue:

fish version: 3.7.1
tide version: 6.1.1
term: xterm-256color
os: macOS
terminal emulator: iTerm2
fish startup: 26.33 millis
fisher plugins: jorgebucaran/fisher ilancosman/tide@v6 edc/bass fabioantunes/fish-nvm