Last active
January 1, 2016 20:09
-
-
Save jnyryan/8195239 to your computer and use it in GitHub Desktop.
Set up aliases for windows command prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set up aliases for windows command prompt | |
| echo creating cmd_aliases.txt | |
| mkdir c:\Windows\CustomProfile | |
| ( | |
| echo ls=dir | |
| echo ps=tasklist $* | |
| echo clear=cls | |
| echo st=git status | |
| echo co=git checkout | |
| echo cm=git commit -m | |
| echo glog=git log | |
| echo gadd=git add | |
| echo pull=git pull | |
| echo push=git push origin | |
| ) > c:\Windows\CustomProfile\cmd_aliases.txt | |
| echo creating cmd_autorun.cmd | |
| ( | |
| echo @echo off | |
| echo cls | |
| echo doskey /macrofile=c:\Windows\CustomProfile\cmd_aliases.txt | |
| )> c:\Windows\CustomProfile\cmd_autorun.cmd | |
| reg add "hkcu\software\microsoft\command processor" /v Autorun /t reg_sz /d c:\Windows\CustomProfile\cmd_autorun.cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment