mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-26 11:48:58 +02:00
Update my-profile.ps1
This commit is contained in:
parent
c955685fa4
commit
6d6a49b8a1
@ -1,23 +1,26 @@
|
|||||||
# My PowerShell Profile
|
# My PowerShell Profile
|
||||||
# =====================
|
# =====================
|
||||||
# Welcome to 'my-profile.ps1' - this file defines the look & feel of PowerShell.
|
# This file defines the look & feel of PowerShell - adapt the following lines to your needs, please.
|
||||||
# Adapt the following lines to your needs, please.
|
|
||||||
|
|
||||||
|
|
||||||
# My Welcome Message
|
# The Welcome Message
|
||||||
# ------------------
|
# -------------------
|
||||||
"Welcome to PowerShell at $(hostname)'s 📂$(get-location)"
|
"Welcome to PowerShell at $(hostname) in 📂$(get-location)"
|
||||||
|
|
||||||
|
|
||||||
|
# The Window Title
|
||||||
|
# ----------------
|
||||||
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
|
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
|
||||||
$host.ui.RawUI.WindowTitle = "$Username @ $(hostname)"
|
$host.ui.RawUI.WindowTitle = "$Username @ $(hostname)"
|
||||||
|
|
||||||
|
|
||||||
# My Command Prompt
|
# The Command Prompt
|
||||||
# -----------------
|
# ------------------
|
||||||
function prompt { write-host -noNewline -foregroundColor yellow "`n➤"; return " " }
|
function prompt { write-host -noNewline -foregroundColor yellow "`n➤"; return " " }
|
||||||
|
|
||||||
|
|
||||||
# My Alias Names (sorted alphabetically)
|
# Supported Alias Names
|
||||||
# --------------
|
# ---------------------
|
||||||
del alias:pwd -force -errorAction SilentlyContinue
|
del alias:pwd -force -errorAction SilentlyContinue
|
||||||
set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory
|
set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory
|
||||||
set-alias -name ll -value get-childitem # ll = list long
|
set-alias -name ll -value get-childitem # ll = list long
|
||||||
|
Loading…
Reference in New Issue
Block a user