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