Skip to content

Instantly share code, notes, and snippets.

@ahsankhatri
Last active March 14, 2019 10:11
Show Gist options
  • Save ahsankhatri/0eefd044b7e4e0110850e0a7cbc91984 to your computer and use it in GitHub Desktop.
Save ahsankhatri/0eefd044b7e4e0110850e0a7cbc91984 to your computer and use it in GitHub Desktop.
Make windows command prompt user-friendly.
@echo off
:: Aliases
DOSKEY reload = %USERPROFILE%\autorun.cmd
DOSKEY editalias = "C:\Program Files\Sublime Text 3\subl.exe" %USERPROFILE%\autorun.cmd
DOSKEY www = cd /d C:\xampp\htdocs
DOSKEY sdf = cd /d D:\Ahsaan\Songs
DOSKEY sbcd = cd /d D:\scripts\python\sevenbridges\sevenbridges
DOSKEY sbenv = D:\scripts\python\sevenbridges\venv\Scripts\activate.bat
:: DOSKEY sbinit = DOSKEY sbcd && DOSKEY sbenv && DOSKEY flask run
:: Commands
DOSKEY cd = cd /d $*
DOSKEY ls = dir /B
DOSKEY ll = "C:\Program Files\Git\usr\bin\ls.exe" -lah $*
DOSKEY cat = type $*
DOSKEY clear = cls
DOSKEY grep = find $*
DOSKEY history = DOSKEY /history
DOSKEY kill = taskkill /PID $*
DOSKEY ps = tasklist $*
DOSKEY pwd = cd
DOSKEY rm = del $*
DOSKEY subl = "C:\Program Files\Sublime Text 3\subl.exe" $*
DOSKEY flrun = flask run --host=192.168.168.114 --port=5001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment