dotfiles/win/setup/oh-my-posh.ps1

14 lines
692 B
PowerShell
Raw Normal View History

2021-01-14 04:56:57 +00:00
# curl: https://curl.se/windows/
# ag: https://github.com/k-takata/the_silver_searcher-win32/releases
# fzf: https://github.com/junegunn/fzf/releases/latest (2.7.2 not working with psfzf)
2021-06-03 13:08:16 +00:00
$PSDefaultParameterValues = @{ "*:Proxy"="http://localhost:8123" }
2021-02-26 10:12:32 +00:00
#Install-Module -Name PowerShellGet -Force -AllowPrerelease
2021-06-03 13:08:16 +00:00
Register-PSRepository -Default -InstallationPolicy Trusted
2021-02-26 10:12:32 +00:00
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
2021-01-14 04:56:57 +00:00
Install-Module -Name posh-git
Install-Module -Name oh-my-posh
Install-Module -Name psfzf
2021-01-13 15:20:59 +00:00
2021-02-26 10:12:32 +00:00
$dotfiles=(Get-Item $PSScriptRoot).Parent.Parent.FullName
2021-01-13 15:20:59 +00:00
New-Item -ItemType SymbolicLink -Target $dotfiles\win\profile.ps1 -Path $profile -Force