-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.ps1
83 lines (68 loc) · 2.47 KB
/
setup.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\WindowsTerminal-profiles.json") `
-Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\WindowsTerminalPreview-settings.json") `
-Path "~\AppData\Local\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\winget-settings.json") `
-Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
}
mkdir ~\AppData\Local\nvim\autoload
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile(
$uri,
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
"~\AppData\Local\nvim\autoload\plug.vim"
)
)
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\init.vim") `
-Path "~\AppData\Local\nvim\init.vim"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\init.lua") `
-Path "~\AppData\Local\nvim\init.lua"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\Powershell_profile.ps1") `
-Path "$profile"
}
# Using VSCode Settings Sync now
# New-Item -Item SymbolicLink -Force `
# -Target (Resolve-Path "~\dotfiles\vscode\settings.json") `
# -Path "~\AppData\Roaming\Code\User\settings.json"
# New-Item -Item SymbolicLink -Force `
# -Target (Resolve-Path "~\dotfiles\vscode\keybindings.json") `
# -Path "~\AppData\Roaming\Code\User\keybindings.json"
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\.gitconfig") `
-Path "~\.gitconfig"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\.yarnrc.yml") `
-Path "~\.yarnrc.yml"
}
gsudo {
New-Item -Item SymbolicLink -Force `
-Target (Resolve-Path "~\dotfiles\.ideavimrc") `
-Path "~\.ideavimrc"
}
Install-Module posh-git -Scope CurrentUser -Force
# Install-Module oh-my-posh -Scope CurrentUser -Force
# Windows 10 PS6+ Already have PSReadLine
# Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
& wsl --install
# Install next
# Printunl
# WebStorm