Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's useful running vim in git bash on Windows. I'll switch, though, if I ever figure out how to install tmux in that environment then I'll switch.


If you need to run tmux in git bash, this worked for me:

1. Installs msys2 (which includes pacman package manager) # can be done separately from your git installation

2. pacman -S tmux # install tmux to msys2 within msys2

3. Copy tmux.exe and msys-event-2-1-7*.dll from msys2 to C:\Program Files\Git\usr\bin # may be a different version msys-event

4. Uninstall msys2! This was important to me because I found edge cases where msys2 did not honor directory links as "not msys files" and it borked things. YMMV


Thank you - that worked!! I haven't done step 4 yet, though, but will keep it in mind if I run into any weird issues.


Thank you, I'll give it a shot ... I'd like to try this before using WSL for the situation I have in mind.


There's no good reason to run git bash on Windows anymore either, since you can use WSL!


Actually, when I tried to use git on Win10 it worked at first but then at some point stopped functioning.

Now that I'm on Win11, I definitely need to revisit that - thanks for the reminder!

The only downside, though, is the clipboard won't be as easily accessible. I'm thinking of things like piping text to clip.


clip works in WSL


Not out of the box. When I try it I get this:

  $ ls -al | clip

  Command 'clip' not found, but can be installed with:

  sudo apt install geomview
"geomview" has something to do with 3D images.

I tried this with Ubuntu 18 and 20 ...


WSL has absolute dogshit I/O so that's not true


I think that's what I ran into ... but not at first, only later, which was weird ...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: