Skip to content

Instantly share code, notes, and snippets.

@krnlde
Created November 11, 2021 21:36
Show Gist options
  • Save krnlde/68d827ef8ca3a17c3232f53d2ce45660 to your computer and use it in GitHub Desktop.
Save krnlde/68d827ef8ca3a17c3232f53d2ce45660 to your computer and use it in GitHub Desktop.
/bat/macros.doskey
ls=dir /B $1
ip=ipconfig $*
y=yarn $*
yes=yarn start $*
yo=yarn outdated $*
yup=yarn upgrade-interactive --latest $*
yb=yarn build $*
gs=git fetch && git status $*
gps=git push $*
gpr=git pull --rebase --autostash $*
gcam=git commit -am $*
gl=git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@krnlde
Copy link
Author

krnlde commented Nov 11, 2021

  • Put this above file in C:\bat\macros.doskey
  • run reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /d "doskey /macrofile=\"c:\bat\macros.doskey\"" /f

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