Browse Source
introduced a `--fish` flag to the env command, so fish users can add this line to their `config.fish` to set up fnm: ```fish eval (fnm env --fish) ```remotes/origin/add-simple-redirecting-site
![me@elliottsj.com](/assets/img/avatar_default.png)
![Gal Schlezinger](/assets/img/avatar_default.png)
3 changed files with 26 additions and 6 deletions
@ -1,9 +1,15 @@ |
|||||||
open Fnm; |
open Fnm; |
||||||
|
|
||||||
let run = () => { |
let run = isFishShell => { |
||||||
Console.log( |
if (isFishShell) { |
||||||
Printf.sprintf("export PATH=%s/bin:$PATH", Directories.currentVersion), |
Console.log( |
||||||
); |
Printf.sprintf("set PATH %s/bin $PATH", Directories.currentVersion), |
||||||
|
); |
||||||
|
} else { |
||||||
|
Console.log( |
||||||
|
Printf.sprintf("export PATH=%s/bin:$PATH", Directories.currentVersion), |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
Lwt.return(); |
Lwt.return(); |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue