| ... | ... | @@ -60,10 +60,10 @@ const CliEnvConfig = Config.all({ |
| 60 | 60 | }); |
| 61 | 61 | |
| 62 | 62 | const expandHomePath = Effect.fn(function* (input: string) { |
| 63 | | const { join } = yield* Path.Path; |
| 63 | const { join, sep } = yield* Path.Path; |
| 64 | 64 | if (input === "~") return os.homedir(); |
| 65 | | if (input.startsWith("~/")) { |
| 66 | | return join(os.homedir(), input.slice(2)); |
| 65 | if (input.startsWith(`~${sep}`)) { |
| 66 | return join(os.homedir(), input.slice(sep.length)); |
| 67 | 67 | } |
| 68 | 68 | return input; |
| 69 | 69 | }); |