Skip to content

Instantly share code, notes, and snippets.

@amorphobia
Created May 4, 2016 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amorphobia/019a911b7513c528faee3e687af59aac to your computer and use it in GitHub Desktop.
Save amorphobia/019a911b7513c528faee3e687af59aac to your computer and use it in GitHub Desktop.
Adding "Open in Cygwin" to Windows right-click menu
Windows Registry Editor Version 5.00
; copied from https://gist.github.com/niboxy/5c4cc06558e8c84aa785
; edit the path where Cygwin is installed
; change the login shell if bash is not prefered
; edit .bash_profile afterwards
; adding the following code
; _T=${_T//\\//}
; if [[ $_T == "" ]]; then
; _T=${HOME}
; fi
; cd "${_T}"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open in Cygwin]
"Icon"="C:\\cygwin64\\Cygwin.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open in Cygwin\Command]
@="C:\\cygwin64\\bin\\mintty.exe -i /Cygwin-Terminal.ico /bin/env _T=\"%V\" /bin/bash -l"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment