cmd/cmd_autoexec.bat
2021-05-07 21:15:09 -07:00

17 lines
563 B
Batchfile

@echo off
REM 1. Go to or create "HKCU\Software\Microsoft\Command Processor"
REM 2. Create string value "Autorun"
REM 3. Set its value to "call <path_to_this_file>"
REM And now all of these commands will be invisibly executed in every new cmd window.
REM I use it to set doskeys which are as close as Windows gets to unix aliases.
doskey .=cd.
doskey ..=cd..
doskey ...=start.
doskey \=cd\
doskey which=where $*
doskey gc=gitcheckup $*
doskey gp=git push $*
doskey gpa=git_push_all $*
doskey gg=git gui
doskey setlatest=recycle __latest $T mklink /j __latest $*