Codes from my life

I installed cygwin on windows today. Its really incredible, gives the same feeling of a linux terminal on windows, though you may need a little tweaking.

  • I have installed an additional shell called mintty which gives a putty like interface, as in the default terminal you cant copy/paste things.
  • You will need to create a shortcut for mintty to make it usable.
  • But when I started vim in mintty, arrow keys were not working and backspace also behaved weirdly in insert mode, reason being cygwin does not create .vimrc by default. Execute this to fix this issue

cp  /usr/share/vim/vimXX/vimrc_example.vim .vimrc

  • Also by default mintty, will land you to /usr/bin, but you will want to land up at your home i think 😉 . So change the link to target this

C:cygwinbinmintty.exe c:cygwinbinbash --login -i

  • ssh will piss you off I dont know why, ssh host does not work by default. How ever /bin/ssh host works as expected. So you might want to set an alias.

With these little tweaks I find cygwin usable now. I recommend using mintty as the default shell las very basic features.

Enjoy the power of linux shell on windows!

Update:

  • clear command is absent by default in cygwin, you may install the ncurses package or just hit Ctrl+L if you use bash.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: