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

window setup issues (fixed) , wsl, zsh #547

Open
JackJackNg opened this issue Jun 16, 2019 · 0 comments
Open

window setup issues (fixed) , wsl, zsh #547

JackJackNg opened this issue Jun 16, 2019 · 0 comments

Comments

@JackJackNg
Copy link

JackJackNg commented Jun 16, 2019

i am window wsl user and using zsh shell, and i encounter quite some issues when setting up my machine. #195

Luckily , mange to get them working,
i put my solution/workaroudn here , in case someone need them:

  • window automatic setup ,doesn't work

    follow the manual setup using wsl instead

  • (for zsh user), during the manual setup use ~/.zshrc instead of ~./.bashrc

    1. 
    //do use .bashrc
    `echo eval \$\(opam config env\) >> ~/.bashrc` 
    
    // use this
    `echo eval \$\(opam config env\) >> ~/.zshrc` 
    
    
    
    2. 
    // don't .bashrc 
    echo export PATH=~\/.npm-global\/bin:\$PATH >> ~/.bashrc
    
    // use this
    echo export PATH=~\/.npm-global\/bin:\$PATH >> ~/.zshrc
    
  • Error: ocamlmerlin command not found

    solution : instead of bash use zsh instead

    the -ic important here , please keep them.

    // this doesn't work for me
    
    "reason.path.bsb": "bash -ic bsb",
    "reason.path.ocamlfind": "bash -ic ocamlfind",
    "reason.path.ocamlmerlin": "bash -ic ocamlmerlin",
    "reason.path.opam": "bash -ic opam",
    "reason.path.rebuild": "bash -ic rebuild",
    "reason.path.refmt": "bash -ic refmt",
    "reason.path.refmterr": "bash -ic refmterr",
    "reason.path.rtop": "bash -ic rtop"
    
    // use this instead
    
    "reason.path.ocamlfind": "wsl zsh -ic ocamlfind",
    "reason.path.ocamlmerlin": " wsl zsh -ic ocamlmerlin",
    "reason.path.opam": "wsl zsh -ic  opam",
    "reason.path.rebuild": "wsl zsh -ic rebuild",
    "reason.path.refmt": "wsl zsh -ic refmt",
    "reason.path.refmterr": "wsl zsh -ic refmterr",
    "reason.path.rtop": "wsl zsh -ic rtop",
    
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

1 participant