Created
September 15, 2011 03:14
-
-
Save ijprest/1218432 to your computer and use it in GitHub Desktop.
CMD Batch file to put a separator between each command you run at the prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /f "tokens=1,2 delims=: " %%Q IN ('mode con:') DO IF "%%Q"=="Columns" SET _COLS=%%R | |
SET /A _COLS=%_COLS% - 13 | |
SET _P= | |
:loop | |
SET _P=%_P%- | |
SET /A _COLS=%_COLS% - 1 | |
IF %_COLS% GTR 0 goto :loop | |
SET PROMPT=%_P%$S$T$_$P$G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by a lifehacker post: http://lifehacker.com/5840450/add-a-handy-separator-between-commands-in-your-terminal-on-mac-os-x-and-linux