Skip to content

Instantly share code, notes, and snippets.

@jnyryan
Last active January 1, 2016 20:09
Show Gist options
  • Select an option

  • Save jnyryan/8195239 to your computer and use it in GitHub Desktop.

Select an option

Save jnyryan/8195239 to your computer and use it in GitHub Desktop.
Set up aliases for windows command prompt
# 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