mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-20 00:48:17 +02:00
Updated my-profile.ps1
This commit is contained in:
parent
62f47df20d
commit
a4f25f2b35
@ -1,22 +1,15 @@
|
|||||||
# My PowerShell Profile
|
# MY POWERSHELL PROFILE (this profile file defines the look & feel of PowerShell)
|
||||||
# =====================
|
|
||||||
# This profile file defines the look & feel of PowerShell.
|
|
||||||
|
|
||||||
# Window Title
|
# 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)"
|
||||||
|
|
||||||
|
# COMMAND PROMPT
|
||||||
# Command Prompt
|
|
||||||
# --------------
|
|
||||||
function prompt { write-host -noNewline -foregroundColor yellow "`n➤"; return " " }
|
function prompt { write-host -noNewline -foregroundColor yellow "`n➤"; return " " }
|
||||||
|
|
||||||
|
# ALIAS NAMES
|
||||||
# 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 folder (long format)
|
||||||
del alias:ls -force -errorAction SilentlyContinue
|
del alias:ls -force -errorAction SilentlyContinue
|
||||||
set-alias -name ls -value list-folder.ps1
|
set-alias -name ls -value list-folder.ps1 # ls = list folder (short format)
|
||||||
|
Loading…
Reference in New Issue
Block a user