Last active
November 11, 2024 14:19
-
-
Save Rednexie/88a9ee6e7100712cc833b6ea6d7e8446 to your computer and use it in GitHub Desktop.
My Windows Powershell Profile configuration(.bashrc equivalent of linux)
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
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