Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationEventAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

fish 2.6.0 で setenv: Too many arguments エラーが出たとき


$ kiex install 1.5.1
Downloading elixir version 1.5.1
Installing elixir version 1.5.1
Switched to branch 'master'

Installed Elixir version 1.5.1
Load with:
           kiex use 1.5.1
or load the elixir environment file with:
   source $HOME/.kiex/elixirs/.elixir-1.5.1.env.fish

$ kiex use 1.5.1
To switch elixir versions for your current shell run:
   source $HOME/.kiex/elixirs/.elixir-1.5.1.env.fish

$ source $HOME/.kiex/elixirs/.elixir-1.5.1.env.fish
setenv: Too many arguments # これです!

調べて見ると setenvset -gxに変更するといいっぽい。

#'setenv'を'set -gx'に変更

- setenv ELIXIR_VERSION 1.5.1
- setenv PATH $HOME/.kiex/elixirs/elixir-1.5.1/bin $PATH
- setenv MIX_ARCHIVES $HOME/.kiex/mix/archives/elixir-1.5.1
+ set -gx ELIXIR_VERSION 1.5.1
+ set -gx PATH $HOME/.kiex/elixirs/elixir-1.5.1/bin $PATH
+ set -gx MIX_ARCHIVES $HOME/.kiex/mix/archives/elixir-1.5.1


$ source $HOME/.kiex/elixirs/.elixir-1.5.1.env.fish
$ kiex list

kiex elixirs

=* elixir-1.5.1

# => - current
# =* - current && default
#  * - default

Fix fish 2.6 compatibility (https://github.com/taylor/kiex/commit/674c513074a084fd2e006aea84cbaf1157fb8998)

$ kiex selfupdate
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Help us understand the problem. What are the problem?