Skip to content

Instantly share code, notes, and snippets.

@jeantil
Created August 13, 2010 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeantil/523190 to your computer and use it in GitHub Desktop.
Save jeantil/523190 to your computer and use it in GitHub Desktop.
cygwin config on windows with rxvt native
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# Copyright (C) 1996, 1999-2010 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted provided the copyright notice and this notice are preserved.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM rxvt-cygwin
TERM rxvt-cygwin-native
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
#NORMAL 00 # no color code at all
#FILE 00 # regular file: use no color at all
RESET 0 # reset to "normal" color
DIR 00;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
MULTIHARDLINK 00 # regular file with more than one link
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file
SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
CAPABILITY 30;41 # file with capability
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
EXEC 00;32
.tar 00;31 # archives or compressed (bright red)
.tgz 00;31
.rar 00;31
.7z 00;31
.lzh 00;31
.zip 00;31
.z 00;31
.Z 00;31
.gz 00;31
.deb 00;31
.png 00;35 # image formats
.bmp 00;35
.ppm 00;35
.tga 00;35
.xbm 00;35
.xpm 00;35
.tif 00;35
.mpg 00;37
.avi 00;37
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
eval `dircolors -b ~/.default_dircolors`
#add whatever you want
! rxvt-cygwin-native .Xdefault with sane colors
#ifdef COLOR
*customization: -color
#endif
! GVim colors, etc
!! GTK versions of gvim will not use all these.
Vim*useSchemes: all
Vim*sgiMode: true
Vim*useEnhancedFSB: true
Vim.foreground: LightGrey
Vim*background: Black
Vim*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-15-*5
Vim*menuBackground: yellow
Vim*menuForeground: black
rxvt*font: -*-consolas-medium-*-*-*-14-*-*-*-*-*-*-*
rxvt*boldFont: -*-consolas-bold-*-*-*-14-*-*-*-*-*-*-*
rxvt*backspacekey: ^?
rxvt*background: Black
rxvt*foreground: LightGrey
rxvt*cursorColor: Orchid
rxvt*reverseVideo: false
rxvt*scrollBar: true
rxvt*reverseWrap: true
rxvt*fullCursor: true
rxvt*saveLines: 15000
rxvt*menu: ~/rxvt.menu
rxvt*color1: red
rxvt*color2: chartreuse
#rxvt*color3: DeepSkyBlue
rxvt*color4: DeepSkyBlue
rxvt*color5: DeepSkyBlue
rxvt*color6: DeepSkyBlue
rxvt*color7: DeepSkyBlue
rxvt*color8: DeepSkyBlue
XTerm*saveLines: 15000
! Do not clear the screen after the program exits
XTerm*VT100*titeInhibit: true
! Fix up xterm's keybindings
xterm*VT100.translations: #override \
<Key>BackSpace: string(0x7F) \n\
<Key>Insert: string(0x1b) string("[2~")\n\
<Key>Delete: string(0x1b) string("[3~")\n\
<Key>Home: string(0x1b) string("[1~")\n\
<Key>End: string(0x1b) string("[4~")\n\
<Key>Page_Up: string(0x1b) string("[5~")\n\
<Key>Page_Down: string(0x1b) string("[6~")\n\
<KeyPress>Prior : scroll-back(1,page)\n\
<KeyPress>Next : scroll-forw(1,page)
! Ghostview
Ghostview*Font: *-helvetica-bold-r-normal--12-*-*-*-*-*-*
Ghostview*BorderColor: white
Ghostview*Text*Font: rk14
Ghostview*Background: #d9d9d9
!Ghostview*Foreground: white
ghostview.form.pageview.page.background: white
ghostview.form.pageview.page.foreground: black
.ghostview.zoom.form.page.background: white
.ghostview.zoom.form.page.foreground: black
command line for link to rxvt :
C:\dev\cygwin\bin\rxvt.exe -display :0 -tn rxvt-cygwin-native -e /bin/bash --login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment