Skip to content

Commit a4f25f2

Browse files
committed
Updated my-profile.ps1
1 parent 62f47df commit a4f25f2

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

Scripts/my-profile.ps1

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
# My PowerShell Profile
2-
# =====================
3-
# This profile file defines the look & feel of PowerShell.
1+
# MY POWERSHELL PROFILE (this profile file defines the look & feel of PowerShell)
42

5-
# Window Title
6-
# ------------
3+
# WINDOW TITLE
74
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
85
$host.ui.RawUI.WindowTitle = "$Username @ $(hostname)"
96

10-
11-
# Command Prompt
12-
# --------------
7+
# COMMAND PROMPT
138
function prompt { write-host -noNewline -foregroundColor yellow "`n"; return " " }
149

15-
16-
# Alias Names
17-
# -----------
10+
# ALIAS NAMES
1811
del alias:pwd -force -errorAction SilentlyContinue
1912
set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory
20-
set-alias -name ll -value get-childitem # ll = list long
21-
del alias:ls -force -errorAction SilentlyContinue
22-
set-alias -name ls -value list-folder.ps1
13+
set-alias -name ll -value get-childitem # ll = list folder (long format)
14+
del alias:ls -force -errorAction SilentlyContinue
15+
set-alias -name ls -value list-folder.ps1 # ls = list folder (short format)

0 commit comments

Comments
 (0)