-2
I'm using Windows command prompt with Cygwin. Is it possible to define a bash like alias i.e. alias rm='rm -i'
to prevent accidental damage from rm command? (Other than using doskey)
Update : All the wise downvoters, please read carefully despite the question being concise, I "want" to use Windows command prompt, not bash etc. & I want to use Cygwin commands with it.
If you are using Cygwin, you can define that alias exactly as you describe it, because in Cygwin you can use (and this is the default) bash?! Am I missing some point? – mpy – 2013-03-13T17:02:01.793
@mpy : I want to use Windows prompt for certain reason, not bash terminal. – user – 2013-03-13T18:06:32.010
"I want to use Windows prompt" -- that is absolutely not clear from your question. The Windows command line interpreter
cmd
has nothing to do with cygwin. – mpy – 2013-03-13T18:10:16.390First line of my question says "I'm using Windows command prompt with Cygwin". Cygwin is there for the "rm/cp/mv" commands & more – user – 2013-03-13T18:11:15.193