(file: string)
| 64 | } |
| 65 | |
| 66 | function full(file: string) { |
| 67 | if (process.platform !== "win32") return file |
| 68 | const shell = FSUtil.windowsPath(file) |
| 69 | if (path.win32.dirname(shell) !== ".") { |
| 70 | if (shell.startsWith("/") && name(shell) === "bash") return gitbash() || shell |
| 71 | return shell |
| 72 | } |
| 73 | if (name(shell) === "bash") return gitbash() || which(shell) || shell |
| 74 | return which(shell) || shell |
| 75 | } |
| 76 | |
| 77 | function meta(file: string) { |
| 78 | return META[name(file)] |