2021-04-16 18:46:03 +02:00
|
|
|
|
# My PowerShell Profile
|
2021-04-03 15:24:18 +02:00
|
|
|
|
# =====================
|
2021-04-10 09:11:56 +02:00
|
|
|
|
# Welcome to 'my-profile.ps1' - this file defines the look & feel of PowerShell.
|
|
|
|
|
# Comment, uncomment or adapt the following lines to your needs, please.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# My Welcome Message
|
|
|
|
|
# ------------------
|
2021-04-17 13:12:27 +02:00
|
|
|
|
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
|
|
|
|
|
$Hostname = $(hostname)
|
|
|
|
|
$host.ui.RawUI.WindowTitle = "$Username @ $Hostname"
|
2021-04-18 13:55:53 +02:00
|
|
|
|
"🧑$Username entered 💻$Hostname at 📂$(Get-Location)"
|
2021-04-10 09:11:56 +02:00
|
|
|
|
|
|
|
|
|
|
2021-04-03 15:24:18 +02:00
|
|
|
|
# My Command Prompt
|
|
|
|
|
# -----------------
|
|
|
|
|
# function prompt {$null} # result is: PS>
|
2021-02-25 11:57:02 +01:00
|
|
|
|
|
2021-04-03 15:24:18 +02:00
|
|
|
|
# function prompt { "$ " } # result is: $
|
2021-02-25 11:57:02 +01:00
|
|
|
|
|
2021-04-18 10:55:37 +02:00
|
|
|
|
function prompt { "`n💲 " } # result is: 💲
|
2021-02-27 11:19:57 +01:00
|
|
|
|
|
2021-04-03 15:24:18 +02:00
|
|
|
|
|
2021-04-10 09:11:56 +02:00
|
|
|
|
# My Alias Names (sorted alphabetically)
|
2021-04-03 15:24:18 +02:00
|
|
|
|
# --------------
|
2021-04-18 10:34:46 +02:00
|
|
|
|
set-alias -name cwd -value list-workdir.ps1 # cwd = current working directory
|
2021-04-10 09:11:56 +02:00
|
|
|
|
set-alias -name ll -value get-childitem # ll = list long
|
2021-04-18 11:39:32 +02:00
|
|
|
|
set-alias -name lsf -value list-formatted.ps1 # lsf = list directory formatted
|