-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathMyPSProfile
More file actions
22 lines (21 loc) · 824 Bytes
/
MyPSProfile
File metadata and controls
22 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Set-PSReadlineOption -EditMode Emacs
$env:LC_ALL="C.UTF-8"
function which($name) { Get-Command $name | Select-Object Definition }
function rmrf($item) { Remove-Item $item -Recurse -Force }
function mkfile($file) { "" | Out-File $file -Encoding ASCII }
function jsonize($obj){ [Newtonsoft.Json.JsonConvert]::SerializeObject($obj) }
function link ($source,$target) {
$source = Resolve-Path($source);
cmd /c mklink /d $target $source
}
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Import-Module Get-ChildItemColor
Set-Alias l Get-ChildItemColor -option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}