This file contains hidden or 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
# general settings | |
Set-PSReadlineOption -EditMode Emacs | |
function Prompt | |
{ | |
$identity = [Security.Principal.WindowsIdentity]::GetCurrent() | |
$principal = [Security.Principal.WindowsPrincipal] $identity | |
if ($principal.IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Write-Host "$(Get-Location)" -NoNewLine -ForegroundColor Red | |
return " # " |
This file contains hidden or 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
rem Legacy mode on | |
clink set prompt_colour 10 | |
clink set terminate_autoanswer 1 | |
rem Legacy mode off |