Skip to content

Instantly share code, notes, and snippets.

@gianmaria
Last active March 23, 2025 15:47
Show Gist options
  • Save gianmaria/9e50d7fbe460cf2dd6ff36377cf1421f to your computer and use it in GitHub Desktop.
Save gianmaria/9e50d7fbe460cf2dd6ff36377cf1421f to your computer and use it in GitHub Desktop.
aliases for windows cmd
:: copy the full path of this file in the AutoRun value in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
@echo off
doskey cd.. = cd ..
doskey .. = cd ..
doskey home = cd %USERPROFILE%
doskey proj = cd C:\Workspace
doskey ls = dir $*
doskey cat = type $*
doskey e = explorer $*
doskey l = dir /b $*
doskey ll = dir /a /b $*
doskey lll = dir /q /a /c /4 $*
doskey c = cls
doskey grep = find $*
doskey env = set $*
doskey alias = doskey /MACROS:ALL
doskey e = explorer $*
doskey pwd = cd
doskey . = cd %USERPROFILE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment