fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Fish (Friendly Interactive Shell) support

Open bugabinga opened this issue 10 years ago • 4 comments

fish is a nice shell, but not very Posix compliant, hence "fresh" does not work out of the box with fish.

What is necessary to make fresh work with fish? Would it be enough to ensure that ".fresh/build/shell.sh" conforms to fish syntax in case it is used?

bugabinga avatar Dec 31 '14 18:12 bugabinga

That should be enough. fresh runs under bash so you will still need it installed. I can't link to the exact line on my phone but the top of shell.sh has so environment variables set by the _fresh_preamble function so if that's valid in Fish shell you should be fine :)

Were you having any problems in particular?

twe4ked avatar Dec 31 '14 18:12 twe4ked

Perhaps a cleaner way to go is to just have an option to disable the preamble and people with incompatible shells can handle mutating the PATH themselves?

jasoncodes avatar Jan 01 '15 10:01 jasoncodes

Another option is to not use fresh’s default shell.sh behaviour and instead always specify an explicit path for shell lines. Something like:

fresh-options --file=~/.config/fish/config.fish --marker=\#
  fresh …
  fresh …
fresh-options

jasoncodes avatar Jan 01 '15 10:01 jasoncodes

I use fish with fresh without any issues. Check out my dotfiles...

neersighted avatar Sep 17 '16 22:09 neersighted