Sunday, January 6, 2008

Setting up Cygwin and rxvt, tcsh, etc.

Create rxvt.bat:
@echo off
d:
chdir d:\cygwin\bin
set EDITOR=vim
set VISUAL=vim
set CYGWIN=codepage:oem tty binmode title
rxvt -e tcsh -l
In home directory, create a file ".Xdefaults", this is the configuration rxvt reads:
! ~/.Xdefaults - X default resource settings
Rxvt*geometry: 128x64
!Rxvt*borderColor: Blue
!Rxvt*scrollColor: Blue
!Rxvt*troughColor: Gray
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
Rxvt*font: -*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-*
Rxvt*SaveLines: 2000
Rxvt*loginShell: True

Rxvt*background: #333333
Rxvt*foreground: #efefcf
!Colors
! Black
Rxvt*color0: #5A5A5A
Rxvt*color8: #3e3e3e
! Red
Rxvt*color1: #FF4747
Rxvt*color9: #FF6767
! Green
Rxvt*color2: #AFC81C
Rxvt*color10: #bFC81C
! Yellow
Rxvt*color3: #FDD338
Rxvt*color11: #F4D461
! Blue
Rxvt*color4: #619AF4
Rxvt*color12: #5496FF
! Purple
Rxvt*color5: #5F5A90
Rxvt*color13: #826AB1
! Cyan
Rxvt*color6: #47E0FF
Rxvt*color14: #2ED9FB
! White
Rxvt*color7: #FFFFFF
Rxvt*color15: #DEDEDE
! eof
Create .cshrc:
##### aliases #####
alias ls 'ls --color=auto';
alias ll 'ls -l';
alias dir 'ls --color=auto --format=vertical';
setenv PATH ".:${PATH}"


if ($?prompt) then
##### sets the prompt #####
set prompt = "[%n@%m:%c3]> "
endif
Configure bash with .bashrc:
set -o notify
export HISTCONTROL=ignoredups
alias less='less -r'
alias rm='rm -i'
alias whence='type -a'
alias ls='ls -F --color=tty'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
# set a nice looking prompt:
PS1='\u@\h:\W\$ '

No comments: