Skip to content

Instantly share code, notes, and snippets.

@varHarrie
Last active February 21, 2017 05:47
Show Gist options
  • Save varHarrie/536388c9e75f7cb8831e8c9baf53ce70 to your computer and use it in GitHub Desktop.
Save varHarrie/536388c9e75f7cb8831e8c9baf53ce70 to your computer and use it in GitHub Desktop.
Set aliases in windows (Place all file in c:\bin and run set_cmd_autorun.reg)
ls=dir /ONE $*
cd=cd /d $*
cnpm=npm $* --registry=https://registry.npm.taobao.org
@echo off
cls
color 0A
doskey /macrofile=c:\bin\aliases
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"Autorun"="c:\\bin\\cmd_autorun.cmd"
@Duobe
Copy link

Duobe commented Dec 11, 2016

ls=dir /ONE $*
cd=cd /d $*
cnpm=npm $* --registry=https://registry.npm.taobao.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment