Skip to content

Instantly share code, notes, and snippets.

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