Skip to content

Instantly share code, notes, and snippets.

@fabianofa
Last active November 16, 2018 00:59
Show Gist options
  • Save fabianofa/6390742 to your computer and use it in GitHub Desktop.
Save fabianofa/6390742 to your computer and use it in GitHub Desktop.
Here is a list of DOSKEY commands I use in Windows to make my workflow better and yet using Microsoft Command Line. This commands should be saved into a .cmd file and manually altering Windows registry keys, set Command Line to autorun it.
# To manually alter the autorun parameter, create a REG_SZ - String Value, named Autorun. As value the absolute path to file, into:
# [HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
# Command list:
# 1 - createrep: Creates a directory and initialize a bare git repository into it
# 2 - sass: Runs sass --watch command on filename, creating same filename converted to css. Alternatively, filename can be absolute or relative paths
# 3 - sass: Runs sass --watch command on filename, creating converted css named by the second filename. Alternatively, filenames can be absolute or relative paths
# --------- BEGIN -------
# 1: createrep usage: createrep <nameofdirectory>
DOSKEY createrep=mkdir $1 $tcd $1 $tgit init --bare
# 2: sass usage: sass <nameoffile>
DOSKEY sass=sass --watch $1.scss:$1.css
# 3: sass usage: sass <nameofscss> <nameofcss>
DOSKEY sass=sass --watch $1.scss:$2.css
# --------- END --------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment