add: pwsh module PSFzf, scoop packages installation, executionpolicy

notification
This commit is contained in:
qwjyh 2022-09-27 06:27:23 +09:00
parent 09628f088d
commit 1959ffc7f5
4 changed files with 111 additions and 1 deletions

View file

@ -1,5 +1,8 @@
#!/usr/bin/pwsh
# dotfiles install script for Windows
# Execute
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# first to run pwsh scripts
# check administration role
#Requires -RunAsAdministrator
@ -21,6 +24,17 @@ if (!(
Install-Module -Name posh-git
Install-Module -Name Pscx -AllowPrerelease
Install-Module -Name z
Install-Module -Name PSFzf -RequiredVersion 2.5.10
# install scoop
if(!(Get-Command scoop -ErrorAction SilentlyContinue)) {
Write-Output "Installing scoop..."
irm get.scoop.sh | iex
}
# install basic scoop apps
# import from exported json file
# to update the json file, execute ./bin/scoop_apps/update_scoop_list.ps1
scoop import .\bin\scoop_apps\scoop_apps.json
# make symbolic links