-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.ps1
More file actions
40 lines (27 loc) · 1011 Bytes
/
profile.ps1
File metadata and controls
40 lines (27 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# %USERPROFILE%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
# no telemetry
$env:POWERSHELL_TELEMETRY_OPTOUT = 1
# ------------------------
# Aliases
function env {
$(gci env:*)
}
function ll {
$(dir | sort -property LastWriteTime -Descending)
}
Set-Alias subl 'C:\Program Files\Sublime Text\subl.exe'
# Unblock-File .\Documents\PowerShell\Modules\md5sum.ps1
# Unblock-File .\Documents\PowerShell\Modules\shasum.ps1
Set-Alias md5 "$env:USERPROFILE\Documents\PowerShell\Modules\md5sum.ps1"
Set-Alias shasum "$env:USERPROFILE\Documents\PowerShell\Modules\shasum.ps1"
# ------------------------
# Chords
# Get-PSReadLineKeyHandler
# Get-PSReadLineKeyHandler -Unbound
Set-PSReadLineKeyHandler -Chord 'Ctrl+a' -Function BeginningOfLine
Set-PSReadLineKeyHandler -Chord 'Ctrl+e' -Function EndOfLine
Set-PSReadLineKeyHandler -Chord 'Ctrl+u' -Function DeleteLineToFirstChar
# ------------------------
# Styles
# $PSStyle
$PSStyle.FileInfo.Directory = "$($PSStyle.Foreground.BrightYellow)"