2010年12月15日星期三

Console2+cmd+cygwin replace cmd.exe

Console2


Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles


Create new tabs

File -> New tab

Edit -> Setting -> Tabs

Add cmd tab

Title: cmd
Icon: <default>
Shell: C:\WINDOWS\system32\cmd.exe

Add cygwin tab

Title: cygwin
Icon: C:\cygwin\Cygwin.ico
Shell: C:\cygwin\bin\bash.exe --login –i

Save settings to user directory

Customize setting

Console

Shell: C:\WINDOWS\system32\cmd.exe
Appearance
Check:
Use tab titles
Show command
Show command in tabs
Trim tab titles to
Use tab icons

Behavior

Check:
         Copy on select
         Don’t wrap long lines
Clear selection on copy
Trim trailing spaces

Hotkeys

Paste: Ctrl+V

Mouse

Copy/clear selection: None
Select text: Left (uncheck shift)
Paste text: Middle


Add to Right click menu

Open cmd here

Add registry key:
HKEY_CLASSES_ROOT\Directory\shell\Open cmd here\command
Default: C:\Program Files\Console2\Console.exe -t cmd "%1"\

Open cygwin here

Run cygwin setup.exe, install chere package.

Add registry key:
HKEY_CLASSES_ROOT\Directory\shell\Open cygwin\command
C:\Program Files\Console2\Console.exe -t cygwin -r "/bin/xhere /bin/bash.exe '%L'"


Add to Right click context menu 

Create a .reg file, copy and paste below lines and run the .reg file:
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\Open cmd here...]
[HKEY_CLASSES_ROOT\Directory\shell\Open cmd here...\command]
@="\"C:\\Program Files\\Console2\\Console.exe\" -t cmd -r \"/bin/xhere /bin/bash.exe '%L'\""
 
[HKEY_CLASSES_ROOT\Directory\shell\Open Cygwin here...]
[HKEY_CLASSES_ROOT\Directory\shell\Open Cygwin Here...\command]
@="\"C:\\Program Files\\Console2\\Console.exe\" -t cygwin -r \"/bin/xhere /bin/bash.exe '%L'\""


沒有留言:

發佈留言