Skip to content

Instantly share code, notes, and snippets.

@mark-ingenosity
Last active December 3, 2019 04:43
Show Gist options
  • Select an option

  • Save mark-ingenosity/b8b0173bf5be87596df18e52c4616af0 to your computer and use it in GitHub Desktop.

Select an option

Save mark-ingenosity/b8b0173bf5be87596df18e52c4616af0 to your computer and use it in GitHub Desktop.
[ENV: Cmder/ConEmu: Init Session]Simplified formatting for doskey macros #windows #batch #doskey #macro #alias
;= ###### Default Aliases ######
;= These live outside of CMDERs environment but are overridden within
;= a CMDER shell (e.g. CMDER wins if there are duplicate definitions)
cmder=C:\PortableApps\System\Cmder\Cmder.exe $*
upenv=RefreshEnv.cmd
regsvrx86="%systemroot%\SysWoW64\regsvr32.exe" $*
regsvrx64="%systemroot%\System32\regsvr32.exe" $*
fastdel=del /F/Q/S *.* > NUL
reged="C:\Program Files\Registry Workshop\RegWorkshop.exe" $*
.v=C:\PortableApps\Utilities\UniversalViewer\Viewer.exe $*
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"CompletionChar"=dword:00000009
"DefaultColor"=dword:00000000
"EnableExtensions"=dword:00000001
"PathCompletionChar"=dword:00000009
"AutoRun"="%ADMIN%\\bin\\CmdShellStartup.cmd"
;= @echo off
;= rem Call and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= set PATH=%PATH%;"C:\Program Files (x86)\Google\Chrome\Application"
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
;= rem System
edalias=sublime_text.exe %CMDER_ROOT%\config\user_aliases.cmd %ADMIN%\conf\default.aliases
;= rem upenv=RefreshEnv.cmd
sudo=nircmdc elevate $*
elevate=nircmdc elevate $*
;= rem Commands
clear=cls
dirl=ls -la --color $*
dirs=ls --color $*
genv=env | grep $*
history=cat "%CMDER_ROOT%\config\.history"
ll=ls -al --show-control-chars -F --color $*
ls=ls --show-control-chars -F --color $*
mkdir=mkdir $1$Tcd $1
pushexe=pushd $1$T$2 $3 $4 $5 $6 $7 $8 $9$Tpopd
pwd=cd
rm=rmdir /S $*$Tdel $*
touch=copy nul $* > nul
unalias=alias /d $1
wsl=pushd "%WSLROOT%"
~=pushd %HOME%
cd=cd /d $*
cd..=cd ..
..=cd ..
...=cd ../../../
....=cd ../../../../
.....=cd ../../../../
.4=cd ../../../../
.5=cd ../../../../..
;= rem Applications
e.=explorer .
d.="C:\Program Files\GPSoftware\Directory Opus\dopus.exe" .
npp="C:\Program Files\Notepad++\notepad++" $*
ste="C:\Program Files\Sublime Text 3\sublime_text.exe" $*
vscode="C:\Program Files\Microsoft VS Code\code.exe" $*
vside="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" $*
;= rem Conemu
creload=cls$Tcmd cur_console
cnew=cmd -new_console:s$*
copt=cat %CMDER_USER_CONFIG_BAK%\conemu-task-options.txt
;= rem Git
gcfg=code "%HOME%\.gitconfig"
gsave=git add .$Tgit stash save --keep-index
wip=git add .$Tgit commit -m "WIP"
;= rem gitlog=git log --pretty=oneline
gl=git log --oneline --all --graph --decorate $*
;= rem Node.js Commands
gw=gulp watch
nrw=npm run watch $*
nrp=npm run prod $*
nrt=npm run test $*
nrtdd=npm run tdd $*
nr=npm run $*
;= rem Processes
org=organize run
orgcfg=organize config
;= rem Folders
cache=cd /d E:\Cache
choc=cd /d C:\ProgramData\chocolatey\
cmder=cd /d "%CMDER_ROOT%"
current=cd /d "Z:\Current"
dev=cd /d Z:\Sync\Development
downloads=cd /d "%CLOUDPATH%\Dropbox\Downloads"
dropbox=cd /d "%CLOUDPATH%\Dropbox\"
gdrive=cd /d "%CLOUDPATH%\Google Drive (mavlach)\"
home=cd /d C:\Users\mavla
incoming=cd /d Z:\Incoming\
portable=cd /d C:\PortableApps
tcache=cd /d E:\Temp\Cache
temp=cd /d E:\Temp
;= rem ss64 Websites
bashhelp=chrome ss64.com/bash/
cmdhelp=chrome ss64.com/nt/
machelp=chrome ss64.com/osx/
oshelp=chrome ss64.com
pshelp=chrome ss64.com/ps/
vbshelp=chrome ss64.com/vb/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment