代码改变世界

Windows下的.bashrc和alias

2013-04-24 00:18  robturtle  阅读(4326)  评论(0编辑  收藏  举报

.bashrc

1. 修改注册表键值

; Run a command when CMD.exe starts
[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
"AutoRun"=-

实测可用,荐!

2. cmd /K "my_autorun.bat"

alias

1. doskey

doskey alias_name=command

2. set

set alias_var=command