Automatic fish setup breaks my system
Closed this issue · 5 comments
(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.
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
this is still an issue in current opam release
muy work around is echo (opam config env) | sed -e 's/\"/\ /g' | .
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';
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
$ 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";