Showing posts with label cygwin. Show all posts
Showing posts with label cygwin. Show all posts

Tuesday, March 27, 2012

Cygwin - Fix slow startup

$ mv /etc/profile.d/bash_completion.sh{,.disabled}

source

Monday, June 22, 2009

Cygwin - Forward- and backword-word in rxvt

Add this to your ~/.inputrc:

# Control+right
"\eOc": forward-word
# Control+left
"\eOd": backward-word

Notice those are O's (the letter) not 0's (zeroes).

You may need to have this in your .bashrc
export INPUTRC=$HOME/.inputrc

Wednesday, May 9, 2007

Cygwin/X - Install 100 dpi fonts

If your fonts look too small, try installing the 100dpi fonts in Cygwin's setup. Under X11, select
xorg-x11-f100: Cygwin/X 100 dpi fonts
In your C:\cygwin\usr\X11R6\bin\startxwin.bat, near the bottom of the file, append "-dpi 100" to this line:
%RUN% XWin -multiwindow -clipboard -silent-dup-error

Cygwin/X - Startup with Windows

Place a shortcut to
C:\cygwin\usr\X11R6\bin\startxwin.bat
in your startup folder (e.g. Start->All Programs->Startup)

To not have xterm pop up everytime you start up, open startxwin.bat and prepend REM in to this line:
%RUN% xterm -e /usr/bin/bash -l

Wednesday, March 21, 2007

Cygwin tips

All tips assume you installed Cygwin at C:\cygwin

Use rxvt instead of dos command prompt

Change your cygwin.bat to
@echo off

C:
chdir C:\cygwin\bin

rxvt -e bash --login -i

Customize rxvt

Create a file in your home directory named .Xdefaults
rxvt*foreground:white
rxvt*background:black
rxvt*font: Lucida Console-14
rxvt*scrollBar_right: true
Other rxvt options can be found here.

Fix Home, End, Delete, and Insert keys

Put this into ~/.inputrc
# Home Key
"\e[7~":beginning-of-line

# End Key
"\e[8~":end-of-line

# Delete Key
"\e[3~":delete-char

# Insert Key
"\e[2~":paste-from-clipboard

Then add this to ~/.bashrc
export INPUTRC=$HOME/.inputrc