oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.46k stars 227 forks source link

fish_title.fish :cannot overwrite read-only variable #339

Closed mihntam closed 1 year ago

mihntam commented 1 year ago

When i start terminal and it show:

read: hostname: cannot overwrite read-only variable
~/.config/fish/functions/fish_title.fish (line 11): 
            uname -n | read -l hostname __
            ^
in function '__bobthefish_title_user'
    called on line 18 of file ~/.config/fish/functions/fish_title.fish
in function 'fish_title'
in command substitution

(Type 'help read' for related documentation)
bobthecow commented 1 year ago

Huh. The -l should prevent it from overwriting anything. Seems like something changed with fish v3.6.1.

bobthecow commented 1 year ago

This should be resolved now. Let me know if you see any issues after updating!

mihntam commented 1 year ago

Now it working, thank you.