Skip to content

Instantly share code, notes, and snippets.

View hollowmaster1496's full-sized avatar
🤐
zipped

Haseeb Syed hollowmaster1496

🤐
zipped
View GitHub Profile
@hollowmaster1496
hollowmaster1496 / msys2-shortcut.md
Last active April 9, 2024 20:10
Open MSYS2 terminal here (mingw-w64) from right-click menu

For anyone who develops software on Windows (but needs quick access to a Linux terminal), here's a quick and easy way to get it with MSYS2.

Before starting, install "MSYS2" with default settings.

  1. From Windows search, launch 'regedit.exe'
  2. Navigate to "HKEY_CLASSES_ROOT\Directory\Background\shell"
  3. Right-click on 'shell' and select New>Key. Call this key MSYS2.
  4. Now right-click on 'MSYS2' and select New>Key. Call this key command
  5. Select command and then double-click on (Default). Set 'Value data' to "C:\msys64\msys2_shell.cmd" "-here"
I did a little research and have found that GIT Bash uses MINGW compilation of GNU tools.
It uses only selected ones.
You can install the whole distribution of the tools from https://www.msys2.org/
and run a command to install Tmux. And then copy some files to installation folder of Git.
This is what you do:
Install before-mentioned msys2 package and run bash shell
Install tmux using the following command: pacman -S tmux
Go to msys2 directory, in my case it is C:\msys64\usr\bin
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname