-
Notifications
You must be signed in to change notification settings - Fork 2k
Integrating Cygwin
You can install either Cygwin or WSL to use the familiar Unix/Linux tools on Windows.
Cygwin is a free and open-source implementation of GNU/Posix tools (like ls
, nano
, vim
, etc).
- Install Cygwin
- https://cygwin.com/install.html
- Recommended Install apt-cyg: https://github.com/transcode-open/apt-cyg
- Add Cygwin installation to PATH (How to?)
- Install the 'chere' package in Cygwin (e.g. by running
apt-cyg install chere
inside Cygwin console). - Create a new task by clicking the
+
button in Startup > Tasks - Edit the name to something more recognizable (Cygwin)
- Figure out the install directory of Cygwin and replace
<cygwin_dir>
with it in the following instructions - Change Task parameters to
/icon <cygwin_dir>\Cygwin-Terminal.ico
- Change Commands to
<cygwin_dir>\cygwin.bat -c "/bin/xhere /bin/bash.exe '%V'"
- (Optional) Set a Hotkey like
LShift + Alt + 3
to open Cygwin in Cmder
After the installation, you can Cygwin binaries to PATH
so that you can use them natively in a Windows shell (e.g. Cmder).
-
Open System Properties using either:
- Control Panel → System → Advanced system settings
- Win + Pause/Break
-
Click on Environment Variables… in the Advanced tab
-
From the System variables (or User variables if you are not an admin),
select the Path variable and click Edit… -
Depending on what version of Windows you have:
- Windows 10: Click on New… button and enter the following:
-
Windows 7: Append a
;
character to the end of line, then enter the following:
C:\Cygwin\bin
✅ Note: In case you didn't install Cygwin to its default folder, you should substitute this path with your installation directory.
This should the installation directory followed by\bin
for the binaries directory.
e.g.:C:\path\to\the\cygwin\bin
Tip: Don't forget to prepend the ; on Windows 7 and older, e.g.:
[current_path]
;C:\Cygwin\bin
-
Press the Ok button where needed, until all open windows are saved.