Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fish config.fish: adding source (jenv init -| psub) causes shims dir to be added to path twice #409

Copy link
Copy link

Description

@aholland
Issue body actions

I have changed the initialisation line in my config.fish file from
source (jenv init -|psub)
to
source (jenv init -| tail -n +2 | psub)
to prevent ~/.jenv/shims from being added to my path twice.

As soon as jenv is called it adds the dir to the path, and then the first line produced by jenv init - does it again. Here is the output of jenv init -:

set -gx PATH '/Users/anthonyholland/.jenv/shims' $PATH
set -gx JENV_SHELL fish
set -gx JENV_LOADED 1
set -e JAVA_HOME
set -e JDK_HOME
source '/opt/homebrew/Cellar/jenv/0.5.6/libexec/libexec/../completions/jenv.fish'
jenv rehash 2>/dev/null
jenv refresh-plugins
function jenv
  set command $argv[1]
  set -e argv[1]

  switch "$command"
  case enable-plugin rehash shell shell-options
    jenv "sh-$command" $argv | source
  case '*'
    command jenv "$command" $argv
  end
end
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.