nb icon indicating copy to clipboard operation
nb copied to clipboard

[Feature Request] Add Windows Support (Not WSL)

Open RoyiAvital opened this issue 2 years ago • 11 comments

Since Windows have tools like MSYS2, Git Bash and CMDer, could we have a native build for Windows?

RoyiAvital avatar Aug 12 '22 16:08 RoyiAvital

What does a native build mean in this context? I'm a Macintosh developer who has nothing against Windows, just trying to learn.

slothbear avatar Aug 12 '22 21:08 slothbear

I meant it just run on Windows without WSL.

RoyiAvital avatar Aug 13 '22 17:08 RoyiAvital

It's a bash script today, someone would need to port it to, say, C, or fork it to PowerShell. Better yet, someone should just port bash to Windows!

aguevara avatar Aug 13 '22 21:08 aguevara

I was under the impression that MSYS2 allows that exactly. I will try nb on it to see if there is an issue. It might be working.

RoyiAvital avatar Aug 14 '22 08:08 RoyiAvital

Currently, the core functionality should work as it currently exists in any environment with Bash, Git, and a POSIX environment with file system access. It might work in MSYS2 or Git for Windows. Full functionality is available if you can install packages from a package manager. If there’s an installer that makes sense for me to set up, let me know.

xwmx avatar Aug 14 '22 19:08 xwmx

What would you install with a package manager? I think on MSYS2 there is PacMan.

RoyiAvital avatar Aug 14 '22 19:08 RoyiAvital

@RoyiAvital The recommended dependencies: bat, ncat, pandoc, rg, tig, w3m

xwmx avatar Aug 14 '22 20:08 xwmx

OK, It seems all of them have a a Windows version, so there should be no issues.

RoyiAvital avatar Aug 14 '22 20:08 RoyiAvital

Hi, is there any plans on making this real?

@RoyiAvital did you manage to make it work without WSL?

Karmac avatar Sep 14 '22 09:09 Karmac

@Karmac , Unfortunately, so far I haven't done it.

RoyiAvital avatar Sep 14 '22 14:09 RoyiAvital

I can confirm that nb works with windows using MSYS2. You can integrate it to Windows Terminal and it feels pretty native. Remember to add '-use-full-path' the the startup parameters of msys to grant it access to your PATH. Install with npm install -g nb.sh.

ruapho avatar Aug 16 '23 13:08 ruapho