Skip to content

Instantly share code, notes, and snippets.

@JohnLaTwC
Created June 16, 2020 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnLaTwC/140435fbf5bb3cd249e831b1dd44524c to your computer and use it in GitHub Desktop.
Save JohnLaTwC/140435fbf5bb3cd249e831b1dd44524c to your computer and use it in GitHub Desktop.
handy macros
;= bookmark and GO commands:
b=setx _bm$1 "%CD%" 1>nul && set _bm$1="%CD%" 1>nul && @echo Bookmarked %CD% in $1.
g=pushd . && cd /d %_bm$1%
;= quickly edit the macro file
em=start /WAIT notepad %userprofile%\cmd_macros.lst && doskey /macrofile=%userprofile%\cmd_macros.lst
;= convenience commands
..=cd ..
...=cd .. & cd ..
xd=md $* & cd $*
;=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment