Skip to content

Instantly share code, notes, and snippets.

@nrubin
Created March 12, 2013 16:33
Show Gist options
  • Save nrubin/5144430 to your computer and use it in GitHub Desktop.
Save nrubin/5144430 to your computer and use it in GitHub Desktop.
Barebones ls on Windows
@ECHO OFF
:: written by noam rubin (@nrubin)
:: I want my ls back!
if "%1" =="" ( :: no parameter, open current directory
dir /B "%CD%"
) else (
dir /B "%1%"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment