I'm wondering how to create a alias for cleartool
in windows.
In Linux, its pretty straight forward(alias).
How can I set the alias for cleartool
in Windows?
You can use doskey:
doskey ct=cleartool $*
You can generalize the idea to other ClearCase commands:
doskey ct=cleartool $*
doskey mt=multitool $*
doskey credmap="C:\Program Files\Rational\ClearCase\etc\utils\credmap.exe" $*
doskey creds="C:\Program Files\Rational\ClearCase\etc\utils\creds.exe" $*
Also (from this thread):
To have instances of
cmd.exe
automatically load your doskey aliases: (this might be XP specific)
- Create a macro file. (ex:
doskey /macros > c:\some\dir\my_macros.txt
)- Create the following registry entry:
hkey_current_user\software\microsoft\Command Processor
with a value of:
Autorun = %systemroot%\system32\doskey.exe /macrofile=c:\some\dir\my_macros.txt