Skip to content

Instantly share code, notes, and snippets.

@Rednexie
Last active November 11, 2024 14:22
Show Gist options
  • Save Rednexie/cab89d3e815ceb7245825661e4a0795e to your computer and use it in GitHub Desktop.
Save Rednexie/cab89d3e815ceb7245825661e4a0795e to your computer and use it in GitHub Desktop.
My Windows Powershell Profile configuration(.bashrc equivalent of Windows)
function prompt{
$user = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name -replace '\\', '@'
$path = $(Get-Location) -replace '\\', '/'
Write-Host "[$user]" -ForegroundColor Red
return "$path$ "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment