forked from techtuner/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.ps1
66 lines (52 loc) · 1.98 KB
/
install.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$user = $env:USERNAME
function scoop_packages() {
$scoop_apps = "sudo", "nvm", "gcc", "wget", "curl", "jq", "neovim", "gh", "oh-my-posh", "fzf"
foreach ($app in $scoop_apps) {
scoop install main/$app
}
}
Invoke-Expression "& {$(Invoke-RestMethod get.scoop.sh)} -RunAsAdmin"
scoop_packages
function code_extensions() {
$extension_list = "rust-lang.rust-analyzer",
"artdiniz.quitcontrol-vscode",
"ms-python.python",
"ms-python.vscode-pylance",
"esbenp.prettier-vscode",
"ms-vscode.powershell",
"christian-kohler.path-intellisense",
"yzhang.markdown-all-in-one",
"sumneko.lua",
"kisstkondoros.vscode-gutter-preview",
"golang.go",
"marlosirapuan.nord-deep",
"miguelsolorio.fluent-icons",
"tamasfe.even-better-toml",
"usernamehw.errorlens",
"ms-azuretools.vscode-docker",
"serayuzgur.crates",
"naumovs.color-highlight",
"vadimcn.vscode-lldb",
"catppuccin.catppuccin-vsc-icons",
"aaron-bond.better-comments",
"jdinhlife.gruvbox"
foreach ($extension in $extension_list) {
code --install-extension $extension
}
Copy-Item .\code\settings.json C:\Users\$user\AppData\Roaming\Code\User\ -Recurse
Copy-Item .\code\keybindings.json C:\Users\$user\AppData\Roaming\Code\User\ -Recurse
}
# Create Directories
mkdir ~\Documents\Powershell
mkdir ~\.config\powershell
Copy-Item .\powershell\user_profile.ps1 C:\Users\$user\.config\powershell\
Copy-Item .\powershell\Microsoft.PowerShell_profile.ps1 C:\Users\$user\Documents\Powershell\
Copy-Item .\wallpapers\ C:\Users\$user\Pictures\ -Recurse
Copy-Item .\nvim\ $env:LOCALAPPDATA -Recurse
Unblock-File -Path C:\Users\$user\.config\powershell\user_profile.ps1
Unblock-File -Path C:\Users\$user\Documents\Powershell\Microsoft.PowerShell_profile.ps1
code_extensions
cargo install eza
Install-Module -Name posh-git -Scope CurrentUser -Force
Install-Module -Name PSFzf -Scope CurrentUser -Force