This tweak will allow you to open Cygwin via right click. No registry edit is required.
Assuming that you have installed Cygwin already.
On Win 7:
1. Download Cygwin Setup.exe and install chere package.
2. Right click and Open Cygwin as Administrator.
3. type "chere -i" or "chere -i -t mintty" if you would like to use Mintty which I personally prefer.
4. Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.
Done!
12 comments:
Awesome help!!
$ chere -i -t mintty
Shell defaulting to sh defined for MP
/usr/bin/chere Error: Unknown shell sh
Supported shells:
ash bash cmd dash fish mksh pdksh posh tcsh zsh passwd
$ echo $SHELL
/bin/sh
$ getent passwd
????????:*:4294967295:4294967295:::
MP:*:400:401:,S-1-5-21-3057310190-824264485-1315356369-1116:/home/MP:/bin/sh
$ cat /etc/passwd
$ cat /etc/shells
/bin/sh
/bin/ash
/bin/bash
/bin/dash
/bin/mksh
/bin/pdksh
/bin/posh
/bin/tcsh
/bin/zsh
/usr/bin/sh
/usr/bin/ash
/usr/bin/bash
/usr/bin/dash
/usr/bin/mksh
/usr/bin/pdksh
/usr/bin/posh
/usr/bin/tcsh
/usr/bin/zsh
Sorry - I meant to ask - could you please tell me how to make my default shell bash as apposed to sh? (if that is in fact what I need to do)
Fantastic!!
You made my day.
Hi Yishai Gronich, Glad it helped you.
Perfect, I am impressed how easy it works. Thanks a lot
Thanks from Portugal! (this post still rocks in 2016)
Thanks @Pedro..yay!
Thanks al lot , you saved day.
For me I had to 'Run as administrator' on cygwin.bat and type the following command, I had to mention bash as it was not able to understand the shell it is supposed to use.
chere -i -s bash
"and install chere package."
What is chere and how to install?
$ /usr/bin/chere
-bash: /usr/bin/chere: No such file or directory
Post a Comment