Skip to content

Instantly share code, notes, and snippets.

@2ajoyce
Last active August 2, 2018 14:52
Show Gist options
  • Save 2ajoyce/246cfd1feee333ef09692506010c2648 to your computer and use it in GitHub Desktop.
Save 2ajoyce/246cfd1feee333ef09692506010c2648 to your computer and use it in GitHub Desktop.
Aliases on windows cmd
@echo off
:: Save this file as %USERPROFILE%\aliases.bat
:: Run regedit and go to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
:: Add String Value entry with the name AutoRun and the full path of your .bat/.cmd file.
:: Copied from: https://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt
DOSKEY ls=dir /B
DOSKEY ll=dir
DOSKEY g=git $*
DOSKEY gs=git status $*
DOSKEY gpr=git pull --rebase $*
DOSKEY gw=gradlew.bat $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment