Created
August 23, 2013 05:04
-
-
Save varemenos/6315711 to your computer and use it in GitHub Desktop.
A profile script that generates a prompt similar to this: AdonisK@home-pc: C:\Users\AdonisK$_
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
# Clear screen | |
cls | |
# Get user | |
$USER = $PWD.toString() | |
$USER = $USER.Remove(0, 9) | |
# Get hostname | |
$HOSTNAME = HOSTNAME.exe | |
# Signs | |
$COLON = ":" | |
$DOLLAR = "$" | |
function prompt { "$USER@$HOSTNAME$COLON $pwd $DOLLAR" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment