Skip to content

Instantly share code, notes, and snippets.

@keombre
Last active July 25, 2018 09:53
Show Gist options
  • Save keombre/47366fad0f090167d7292b31fb9249f6 to your computer and use it in GitHub Desktop.
Save keombre/47366fad0f090167d7292b31fb9249f6 to your computer and use it in GitHub Desktop.
nicer CMD
@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=""
ver|findstr "^M"
echo Running K_CMD v1.0.1
echo|set/p=""
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