Last active
July 25, 2018 09:53
-
-
Save keombre/47366fad0f090167d7292b31fb9249f6 to your computer and use it in GitHub Desktop.
nicer CMD
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 | |
REM Aliases | |
doskey chrome="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" | |
doskey cdc=if $1. equ . (cd /D D:\Code) else cd /D D:\Code\"$*" | |
doskey kill=if $1. equ . (echo No process name specified) else taskkill -t -f -im $1 | |
REM Title | |
title cmd | |
REM Header | |
cls | |
echo|set/p="[35m" | |
ver|findstr "^M" | |
echo [1;35mRunning K_CMD v1.0.1 | |
echo|set/p="[0m" | |
REM Prompt | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( | |
prompt $E[36m┌─┤$T$H$H$H$B $E[31m%username%$E[32m$C$E[4;32mAdmin$E[0;32m$F$E[1;30m@$E[31m%computername% $E[33m$P$_$E[0;36m└─$E[1;31m$$$S$E[0m | |
) else ( | |
prompt $E[36m┌─┤$T$H$H$H$B $E[31m%username%$E[1;30m@$E[31m%computername% $E[33m$P$_$E[0;36m└─$E[1;31m$$$S$E[0m | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment