User Tools

Site Tools


Disregard this, use mintty - A decent native Windows shell

CMD.EXE sucks and the Windows-native replacements are all rubbish. What to do? Install Cygwin with RXVT. It doesn't have tabs, but everything else about it is fine. It doesn't require an X server. You'll have two options: rxvt-x and rxvt-native. Both work. To set the font of rxvt-x, edit values in .Xdefaults (below). To set the font of rxvt-native, edit the shortcut itself. If you're on Windows 7 and want to use pinning, rxvt-native is a better choice, since rxvt-x runs through a wrapper that confuses the Windows 7 pinning system.

To set your shell to bash, make an environment variable "SHELL" equal to "bash".

To configure RXVT, create a ~/.Xdefaults file populated with the material below.

Also, you may wish to add the following to your .bashrc:

if [ "$TERM" == "rxvt-cygwin" ] ; then export TERM=xterm ; fi
if [ "$TERM" == "rxvt-cygwin-native" ] ; then export TERM=xterm ; fi

This will change the value of the TERM environment value to "xterm" instead of "rxvt-cygwin" when using rxvt, which is useful since most servers have never heard of "rxvt-cygwin" and would otherwise assume you have a dumb terminal.

Content of ~/.Xdefaults:

! Save this file as ~/.Xdefaults and start a term without any options to
! see what it does.

! Use ! for comments (if you don't like a certain setting)

! The `Xterm' settings work for most terms like aterm, xterm, wterm and rxvt.

! Color section

XTerm*background:  #000000
XTerm*foreground:  #cfcfcf
XTerm*cursorColor: #cdc092

XTerm*color0:      #000000

XTerm*color1:      #e01010

XTerm*color2:      #20ad20

XTerm*color3:      #d4c24f

XTerm*color4:      #231bb8

XTerm*color5:      #9c3885

XTerm*color6:      #1dbdb8

XTerm*color7:      #fefefe

XTerm*color8:      #6a6a6a

XTerm*color9:      #e83a3d

XTerm*color10:     #35e956

XTerm*color11:     #ffff2f

XTerm*color12:     #3a53f0

XTerm*color13:     #e628ba

XTerm*color14:     #1cf5f5

XTerm*color15:     #ffffff

!                           Nice for manpages
!XTerm*underLine:           on
!XTerm*colorMode:           on
XTerm*colorBD:              lightyellow
!XTerm*colorBDMode:         off
XTerm*colorUL:              cyan
!XTerm*colorULMode:         on

XTerm*dynamicColors:        on
XTerm*highlightSelection:   true

XTerm*eightBitInput:        false
XTerm*metaSendsEscape:      true
!XTerm*oldXtermFKeys:        true
XTerm*charClass:             33:48,35-38:48,39:43,42-47:48,58-59:48,61:48,63-64:48,126:48
!XTerm*charClass:             46-47:48,58:48,64:48,63:48,95:48,126:48,61:48,37:48,35:48,43:48,36:48

rxvt*font:                  courier
rxvt.termName:              rxvt
rxvt*background:  #100020
rxvt*foreground:  #cfcfcf
rxvt*cursorColor: #FFFF00
rxvt*scrollstyle: next
rxvt*scrollTtyOutput: false
rxvt*scrollWithBuffer: false
rxvt*scrollTtyKeypress: true
rxvt*saveLines: 5000
rxvt*visualBell: true
rxvt_-_a_decent_windows_shell.txt · Last modified: 2011/04/15 10:37 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki