Open douglascamata opened 8 years ago
This was added in https://github.com/taylor/kiex/pull/33. Is there a problem with fish support?
I didn't see any documentation about this. The "tested shells" section in the README didn't mention fish-shell and there are no setup instructions for fish-shell specifically... so I assumed there's no support. Maybe documentation about it should be added?
@douglascamata pull request welcome :)
I'll see what I can do 👍
using
test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex"
i got
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
fish: test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex"
then changing to
test -s "$HOME/.kiex/scripts/kiex.fish" and; source "$HOME/.kiex/scripts/kiex.fish"
i got
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
~/.kiex/scripts/kiex (line 3): && source $HOME/.kiex/scripts/kiex.csh \
^
from sourcing file ~/.kiex/scripts/kiex
called on standard input
i was able to get fish working by skipping scripts/kiex and pointing to scripts/kiex.fish directly
test -s "$HOME/.kiex/scripts/kiex.fish" and; source "$HOME/.kiex/scripts/kiex.fish"
everything but sub-shell worked for me after that
thanks for kiex!
THX!
The instructions shown during install will have to be updated for fish -- https://github.com/taylor/kiex/blob/master/kiex#L379. It is already done for some parts of the program such as https://github.com/taylor/kiex/blob/master/kiex#L379
I'll get fish setup in my test environment.
kiex use
also doesn't work because kiex generates a bash compliant env file.
For my elixir version, I manually changed it to this:
$ cat elixir-1.3.4.env
set -xg ELIXIR_VERSION 1.3.4
set -xg PATH $HOME/.kiex/elixirs/elixir-1.3.4/bin $PATH
set -xg MIX_ARCHIVES $HOME/.kiex/mix/archives/elixir-1.3.4
Any updates on this?
@jfis, I have an error in kiex.fish (at least for current fish version)
I am corrected it for a little bit:
test -s "$HOME/.kiex/scripts/kiex.fish"; and source "$HOME/.kiex/scripts/kiex.fish"
Now everything is works.
Just add above string to the ~/.config/fish/config.fish file
Enjoy!
maybe issue must be closed now?
fish-shell uses, like me, are very forgotten when it comes to libraries that needs to be loaded into the shell. It would be nice to see some integration here.