-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.ps1
53 lines (38 loc) · 1.89 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
$currentPath = $PWD.Path
cd $currentPath\powershell
if (Test-Path -LiteralPath $env:USERPROFILE\Documents\WindowsPowershell\Microsoft.PowerShell_profile.ps1) {
Remove-Item -LiteralPath $env:USERPROFILE\Documents\WindowsPowershell\Microsoft.PowerShell_profile.ps1
}
New-Item -Path $env:USERPROFILE\Documents\WindowsPowershell\Microsoft.PowerShell_profile.ps1 -ItemType SymbolicLink -Value Microsoft.PowerShell_profile.ps1
cd $currentPath\git
if (Test-Path -LiteralPath $env:USERPROFILE\.gitconfig) {
Remove-Item -LiteralPath $env:USERPROFILE\.gitconfig
}
New-Item -Path $env:USERPROFILE\.gitconfig -ItemType SymbolicLink -Value .gitconfig
cd $currentPath\alacritty\.config\
if (Test-Path -LiteralPath $env:APPDATA\alacritty) {
Remove-Item -LiteralPath $env:APPDATA\alacritty -Recurse
}
New-Item -Path $env:APPDATA\alacritty -ItemType SymbolicLink -Value alacritty\
cd $currentPath\lazygit\.config\
if (Test-Path -LiteralPath $env:LOCALAPPDATA\lazygit) {
Remove-Item -LiteralPath $env:LOCALAPPDATA\lazygit -Recurse
}
New-Item -Path $env:LOCALAPPDATA\lazygit -ItemType SymbolicLink -Value lazygit\
cd $currentPath\nvim\.config\
if (Test-Path -LiteralPath $env:LOCALAPPDATA\nvim) {
Remove-Item -LiteralPath $env:LOCALAPPDATA\nvim -Recurse
}
New-Item -Path $env:LOCALAPPDATA\nvim -ItemType SymbolicLink -Value nvim
cd $currentPath\wezterm\.config\
if (Test-Path -LiteralPath $env:USERPROFILE\.config\wezterm) {
Remove-Item -LiteralPath $env:USERPROFILE\.config\wezterm -Recurse
}
New-Item -Path $env:USERPROFILE\.config\wezterm -ItemType SymbolicLink -Value wezterm
cd $currentPath\starship\.config\
if (Test-Path -LiteralPath $env:LOCALAPPDATA\starship) {
Remove-Item -LiteralPath $env:LOCALAPPDATA\starship -Recurse
}
New-Item -Path $env:LOCALAPPDATA -Name "starship" -ItemType Directory
New-Item -Path $env:LOCALAPPDATA\starship\starship.toml -ItemType SymbolicLink -Value starship.toml
cd $currentPath