Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fish (Friendly Interactive Shell) support #125

Open
bugabinga opened this issue Dec 31, 2014 · 4 comments
Open

Fish (Friendly Interactive Shell) support #125

bugabinga opened this issue Dec 31, 2014 · 4 comments

Comments

@bugabinga
Copy link

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?

@twe4ked
Copy link
Member

twe4ked commented Dec 31, 2014

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?

@jasoncodes
Copy link
Member

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
Copy link
Member

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

@neersighted
Copy link
Contributor

neersighted commented Sep 17, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants