map "terminal" button on Windows to cygwin shell

Is there a way to map the terminal button in the toolbar to run a cygwin shell instead of invoking cmd.exe?

I believe the command I would need to execute is

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -

2 answers

This widget could not be displayed.
David Simpson Community Champion Jun 29, 2013

Though I'm sure this is not Atlassian related, I'll answer anyway.

http://www.bioinf.uni-freiburg.de/~mmann/HowTo/windows.html says:

Change the Windows CMD.EXE shell into a real BASH SHELL (top)

To do this, you have got to install the Cygwin system including the 'bash shell'.

Afterwards you can introduce the following changes in order to change the 'normal' Windows DOS-box into a fully functional bash shell.

  • open the registry editor (select 'Start->Run' and type 'regedit')
  • browse to the key 'HKEY_CURRENT_USER\Software\Microsoft\Command Processor'
  • add a new string var named 'Autorun'
  • edit the value of the new 'Autorun'-key to 'CYGWINBINPATH/bash.exe' (for CYGWINBINPATH insert the local path on your machine where the 'bash.exe' is located)
  • open a new CMD.EXE shell and make it interactive!

If you would like to run the bash shell with your own '.bashrc' do the following:

  • add ' --rcfile RCPATH/.bashrc' to the Autorun key in the registry and voilá! (as usual RCPATH is your local path to the file)

To make the shell change global for all users:

  • install Cygwin globally for all users
  • change the registry key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor' instead of 'HKEY_CURRENT_USER'
This widget could not be displayed.

thanks. I'll try it out when I have a few minutes to tinker

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

140 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you