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 @@
@@ -1,9 +1,15 @@
|
||||
open Fnm; |
||||
|
||||
let run = () => { |
||||
Console.log( |
||||
Printf.sprintf("export PATH=%s/bin:$PATH", Directories.currentVersion), |
||||
); |
||||
let run = isFishShell => { |
||||
if (isFishShell) { |
||||
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(); |
||||
}; |
||||
|
Loading…
Reference in new issue