Cygwin Setup Terminals: Difference between revisions
No edit summary |
(→TODO) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | |||
* [[Cygwin Installation and Configuration#Setup_Terminals|Cygwin Installation and Configuration - Setup Terminals]] | |||
=TODO= | |||
<font color=red>Needs review for Cygwin 2.5.2 and Windows 10.</font> | |||
=Overview= | =Overview= | ||
All terminal scripts for a default cygwin installation should be placed in <tt>/home/<username>/bin</tt>. If the "bin" directory does not exist, create it. | All terminal scripts for a default cygwin installation should be placed in <tt>/home/<username>/bin</tt>. If the "bin" directory does not exist, create it. | ||
=Relevance= | |||
For Cygwin 2.3.1 I did not find <tt>rxvt</tt> so everything below might be obsolete. | |||
=Default rxvt Terminal= | =Default rxvt Terminal= | ||
1. Create /home/ovidiu/bin/cygwin-rxvt.bat | 1. Create <tt>/home/ovidiu/bin/cygwin-rxvt.bat</tt> | ||
<pre> | |||
@echo off | @echo off | ||
Line 14: | Line 26: | ||
start rxvt -sr -sl 10000 -geometry 120x60 -fg gray -bg black -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-10-10-m-0-iso8859-2" -e /bin/bash --login -i | start rxvt -sr -sl 10000 -geometry 120x60 -fg gray -bg black -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-10-10-m-0-iso8859-2" -e /bin/bash --login -i | ||
</pre> | |||
2. Make it executable | 2. Make it executable | ||
<pre> | |||
cd ~/bin | cd ~/bin | ||
chmod a+x cygwin-rxvt.bat | chmod a+x cygwin-rxvt.bat | ||
</pre> | |||
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | 3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | ||
Line 28: | Line 40: | ||
* General tab - Name: cygwin | * General tab - Name: cygwin | ||
* Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-rxvt.bat | * Shortcut tab - Target: <tt>C:\cygwin\home\ovidiu\bin\cygwin-rxvt.bat</tt> | ||
* Shortcut tab - Start in: C:\cygwin\home\ovidiu | * Shortcut tab - Start in: <tt>C:\cygwin\home\ovidiu</tt> | ||
5. Drag the icon to quick-launch and then delete the icon from the desktop. | 5. Drag the icon to quick-launch and then delete the icon from the desktop. | ||
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut. | 6. Optional - if you don't like the icon, copy the .ico from the current machine into <tt>C:\cygwin\home\ovidiu\bin</tt> and change the icon on the shortcut. | ||
=Large Fonts rxvt Terminal= | |||
1. Create <tt>/home/ovidiu/bin/cygwin-rxvt-large-fonts.bat</tt> | |||
<pre> | |||
@echo off | @echo off | ||
Line 47: | Line 58: | ||
start rxvt -sr -sl 10000 -geometry 120x60 -fg black -bg white -fn -*-lucidatypewriter-medium-*-*-*-18-*-*-*-*-*-*-* -e /bin/bash --login -i | start rxvt -sr -sl 10000 -geometry 120x60 -fg black -bg white -fn -*-lucidatypewriter-medium-*-*-*-18-*-*-*-*-*-*-* -e /bin/bash --login -i | ||
</pre> | |||
2. Make it executable: | 2. Make it executable: | ||
<pre> | |||
cd ~/bin | cd ~/bin | ||
chmod a+x cygwin-rxvt-large-fonts.bat | chmod a+x cygwin-rxvt-large-fonts.bat | ||
</pre> | |||
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | 3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | ||
Line 61: | Line 72: | ||
* General tab - Name: cygwin (winterm) | * General tab - Name: cygwin (winterm) | ||
* Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-rxvt-large-fonts.bat | * Shortcut tab - Target: <tt>C:\cygwin\home\ovidiu\bin\cygwin-rxvt-large-fonts.bat</tt> | ||
* Shortcut tab - Start in: C:\cygwin\home\ovidiu | * Shortcut tab - Start in: <tt>C:\cygwin\home\ovidiu</tt> | ||
5. Drag the icon to quick-launch and then delete the icon from the desktop. | 5. Drag the icon to quick-launch and then delete the icon from the desktop. | ||
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut. | 6. Optional - if you don't like the icon, copy the .ico from the current machine into <tt>C:\cygwin\home\ovidiu\bin</tt> and change the icon on the shortcut. | ||
=Windows Native Terminal= | |||
1. Create /home/ovidiu/bin/cygwin-winterm.bat | 1. Create <tt>/home/ovidiu/bin/cygwin-winterm.bat</tt> | ||
<pre> | |||
@echo off | @echo off | ||
Line 79: | Line 90: | ||
bash --login -i | bash --login -i | ||
</pre> | |||
2. Make it executable: | 2. Make it executable: | ||
<pre> | |||
cd ~/bin | cd ~/bin | ||
chmod a+x cygwin-winterm.bat | chmod a+x cygwin-winterm.bat | ||
</pre> | |||
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | 3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop. | ||
Line 93: | Line 104: | ||
* General tab - Name: cygwin (large fonts) | * General tab - Name: cygwin (large fonts) | ||
* Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-winterm.bat | * Shortcut tab - Target: <tt>C:\cygwin\home\ovidiu\bin\cygwin-winterm.bat</tt> | ||
* Shortcut tab - Start in: C:\cygwin\home\ovidiu | * Shortcut tab - Start in: <tt>C:\cygwin\home\ovidiu</tt> | ||
5. Drag the icon to quick-launch and then delete the icon from the desktop. | 5. Drag the icon to quick-launch and then delete the icon from the desktop. | ||
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut. | 6. Optional - if you don't like the icon, copy the .ico from the current machine into <tt>C:\cygwin\home\ovidiu\bin</tt> and change the icon on the shortcut. | ||
=mintty Configuration= | |||
Right Click on the upper left hand side icon -> Options -> |
Latest revision as of 18:16, 21 July 2016
Internal
TODO
Needs review for Cygwin 2.5.2 and Windows 10.
Overview
All terminal scripts for a default cygwin installation should be placed in /home/<username>/bin. If the "bin" directory does not exist, create it.
Relevance
For Cygwin 2.3.1 I did not find rxvt so everything below might be obsolete.
Default rxvt Terminal
1. Create /home/ovidiu/bin/cygwin-rxvt.bat
@echo off C: chdir C:\cygwin\bin start rxvt -sr -sl 10000 -geometry 120x60 -fg gray -bg black -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-10-10-m-0-iso8859-2" -e /bin/bash --login -i
2. Make it executable
cd ~/bin chmod a+x cygwin-rxvt.bat
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop.
4. Edit the copy of the icon as follows:
- General tab - Name: cygwin
- Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-rxvt.bat
- Shortcut tab - Start in: C:\cygwin\home\ovidiu
5. Drag the icon to quick-launch and then delete the icon from the desktop.
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut.
Large Fonts rxvt Terminal
1. Create /home/ovidiu/bin/cygwin-rxvt-large-fonts.bat
@echo off C: chdir C:\cygwin\bin start rxvt -sr -sl 10000 -geometry 120x60 -fg black -bg white -fn -*-lucidatypewriter-medium-*-*-*-18-*-*-*-*-*-*-* -e /bin/bash --login -i
2. Make it executable:
cd ~/bin chmod a+x cygwin-rxvt-large-fonts.bat
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop.
4. Edit the copy of the icon as follows:
- General tab - Name: cygwin (winterm)
- Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-rxvt-large-fonts.bat
- Shortcut tab - Start in: C:\cygwin\home\ovidiu
5. Drag the icon to quick-launch and then delete the icon from the desktop.
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut.
Windows Native Terminal
1. Create /home/ovidiu/bin/cygwin-winterm.bat
@echo off C: chdir C:\cygwin\bin bash --login -i
2. Make it executable:
cd ~/bin chmod a+x cygwin-winterm.bat
3. Copy and paste the existing desktop Cygwin Terminal icon, place the copy on the desktop.
4. Edit the copy of the icon as follows:
- General tab - Name: cygwin (large fonts)
- Shortcut tab - Target: C:\cygwin\home\ovidiu\bin\cygwin-winterm.bat
- Shortcut tab - Start in: C:\cygwin\home\ovidiu
5. Drag the icon to quick-launch and then delete the icon from the desktop.
6. Optional - if you don't like the icon, copy the .ico from the current machine into C:\cygwin\home\ovidiu\bin and change the icon on the shortcut.
mintty Configuration
Right Click on the upper left hand side icon -> Options ->