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

Automatic fish setup breaks my system #2884

Closed
boxed opened this issue Mar 17, 2017 · 5 comments
Closed

Automatic fish setup breaks my system #2884

boxed opened this issue Mar 17, 2017 · 5 comments

Comments

@boxed
Copy link

boxed commented Mar 17, 2017

(I'm using macOS sierra and fish 2.3.1)

In ~/.opam/opam-init/variables.fish the first line is set -gx PATH "/Users/andersh/.opam/system/bin" "$PATH"; but that is incorrect. it should be set -gx PATH $PATH "/Users/andersh/.opam/system/bin"

The incorrect path breaks fish pretty badly, so bad in fact that you can't even issue commands to fish to edit files, which is pretty inconvenient.

@AltGr
Copy link
Member

AltGr commented Mar 20, 2017

What version of opam ? I believe this has already been solved (#2255).
Please reopen with details if not and you get problems with 2.0-beta

@cartazio
Copy link

this is still an issue in current opam release

muy work around is echo (opam config env) | sed -e 's/\"/\ /g' | .

@AltGr
Copy link
Member

AltGr commented Jan 25, 2018

by "current", you mean 1.2.2 ?
Please include the output of opam config report.
The current format is:

% opam env --shell fish
set -gx OPAM_SWITCH_PREFIX '/home/lg/.opam/4.05.0';
set -gx CAML_LD_LIBRARY_PATH '/home/lg/.opam/4.05.0/lib/stublibs:/home/lg/.opam/4.05.0/lib/ocaml/stublibs:/home/lg/.opam/4.05.0/lib/ocaml';
set -gx OCAML_TOPLEVEL_PATH '/home/lg/.opam/4.05.0/lib/toplevel';
set -gx MANPATH '/home/lg/.opam/4.05.0/man';
set -gx PATH '/home/lg/.opam/4.05.0/bin' '/home/lg/bin' '/home/lg/local/bin' '/usr/local/bin' '/usr/bin' '/bin' '/usr/bin/X11' '/usr/games' '/usr/sbin' '/sbin';

@cartazio
Copy link

21:36:36 ~/W/p/a/random (v1.2.0|✚1) $ opam config report
# OPAM config report
# opam-version    1.2.2
# self-upgrade    no
# os              darwin
# external-solver aspcud $in $out $criteria
# criteria        -count(removed),-notuptodate(request),-sum(request,version-lag),-count(down),-notuptodate(changed),-count(changed),-notuptodate(solution),-sum(solution,version-lag)
# jobs            1
# repositories    2* (http)
# pinned          2 (version)
# current-switch  system*
# last-update     2018-01-22 18:34
21:36:37 ~/W/p/a/random (v1.2.0|✚1) $ [1;2A

@cartazio
Copy link

 $ opam config env --shell fish
set -gx CAML_LD_LIBRARY_PATH "/Users/carter/.opam/system/lib/stublibs:/usr/local/lib/ocaml/stublibs";
set -gx OPAMUTF8MSGS "1";
set -gx MANPATH "/Users/carter/.opam/system/man" "";
set -gx PERL5LIB "/Users/carter/.opam/system/lib/perl5";
set -gx OCAML_TOPLEVEL_PATH "/Users/carter/.opam/system/lib/toplevel";
set -gx PATH "/Users/carter/.opam/system/bin" "/Users/carter/.cabal/bin" "/Users/carter/.install-ghc/ghc-8.2.2/bin" "/Users/carter/bin" "/Users/carter/.scripts" "/Users/carter/docTemplates" "/Library/TeX/texbin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/opt/X11/bin" "/usr/local/MacGPG2/bin" "/Library/Frameworks/Mono.framework/Versions/Current/Commands" "/Library/TeX/texbin" "/usr/local/sbin";

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

3 participants