tags:

views:

30

answers:

1

I am attempting to set up aliases for my Cygwin bash shells, to run programs contained in the standard Windows C:\Program Files subdirectories. Unfortunately, the alias command really doesn't like spaces in a directory name, and nothing I've tried seems to work. I'm trying to get the following running:

alias npp='/cygdrive/c/Program Files/Notepad++/notepad++.exe'

I am currently cheating and using a soft link, but I would prefer to use an alias.

+2  A: 

Escape Characters:

alias npp="/cygdrive/c/Program\ Files/Notepad++/notepad++.exe"

Edit: Note the change from single to double quotes as well.

Shynthriir
It almost works. However, instead of bringing up Notepad++, it shows some sort of prompt character ( a > ) in the terminal. I'm using rxvt, if that is important.
mkClark
I believe the double quotes I have are imporant because they allow for usage of escape characters (and variables for the matter). Make sure you changed your single quotes to double quotes.
Shynthriir
Disregard previous comment. Problem was caused by poor typing skills on my part. Thanks...
mkClark