From 6d6a49b8a1e2090e4668caabacb65da719ac20d8 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 9 Dec 2021 07:19:20 +0100 Subject: [PATCH] Update my-profile.ps1 --- Scripts/my-profile.ps1 | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Scripts/my-profile.ps1 b/Scripts/my-profile.ps1 index 845ecc39..33313a47 100755 --- a/Scripts/my-profile.ps1 +++ b/Scripts/my-profile.ps1 @@ -1,23 +1,26 @@ ļ»æ# My PowerShell Profile # ===================== -# Welcome to 'my-profile.ps1' - this file defines the look & feel of PowerShell. -# Adapt the following lines to your needs, please. +# This file defines the look & feel of PowerShell - adapt the following lines to your needs, please. -# My Welcome Message -# ------------------ -"Welcome to PowerShell at $(hostname)'s šŸ“‚$(get-location)" +# The Welcome Message +# ------------------- +"Welcome to PowerShell at $(hostname) in šŸ“‚$(get-location)" + + +# The Window Title +# ---------------- if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME } $host.ui.RawUI.WindowTitle = "$Username @ $(hostname)" -# My Command Prompt -# ----------------- +# The Command Prompt +# ------------------ function prompt { write-host -noNewline -foregroundColor yellow "`nāž¤"; return " " } -# My Alias Names (sorted alphabetically) -# -------------- +# Supported Alias Names +# --------------------- del alias:pwd -force -errorAction SilentlyContinue set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory set-alias -name ll -value get-childitem # ll = list long