-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile.ps1
30 lines (23 loc) · 951 Bytes
/
profile.ps1
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
Import-Module oh-my-posh
Set-PoshPrompt -Theme zash
## this command will get all oh-my-posh themes
# Get-PoshThemes
## AutoComplete and suggestions
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadlineOption -HistorySearchCursorMovesToEnd
Set-PSReadlineOption -ShowToolTips
Set-PSReadlineOption -PredictionSource History
# If you install Get-ChildItemColor, paste this script to use ls command.
Import-Module Get-ChildItemColor
if (-Not (Test-Path Variable:PSise)) {
Import-Module Get-ChildItemColor
Set-Alias l Get-ChildItem -option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
}
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}