cmd/cmd_autoexec.bat

18 lines
572 B
Batchfile
Raw Normal View History

2020-01-16 05:34:01 +00:00
@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\
2021-05-01 23:03:54 +00:00
doskey which=where $*
2020-10-09 20:16:39 +00:00
doskey gc=gitcheckup $*
2020-11-09 03:35:25 +00:00
doskey gp=git push $*
2021-01-14 10:44:24 +00:00
doskey gpa=git_push_all $*
2023-09-26 02:04:02 +00:00
doskey gfa=git fetch --all
2021-05-08 02:54:03 +00:00
doskey setlatest=recycle __latest $T mklink /j __latest $*