generated from 2KAbhishek/bare-minimum
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.ps1
70 lines (52 loc) · 2.75 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
# Scoop Packages
scoop config aria2-warning-enabled false
scoop bucket add anderlli0053_DEV-tools https://github.com/anderlli0053/DEV-tools
scoop install neovim eza fd fzf ripgrep vifm bat less gh git lazygit delta make gcc msys2 openssh wget curl nodejs python powershell powertoys winget oh-my-posh 7zip gzip komorebi whkd
scoop update *
Install-Module -Name Terminal-Icons -Repository PSGallery -Force -AllowClobber
Install-Module -Name z -Force -AllowClobber
Install-Module -Name PSReadLine -Force -SkipPublisherCheck -AllowClobber
Install-Module -Name PSFzf -Force -AllowClobber
Update-Module
# Fetch submodules
git submodule update --init --recursive
# Install Font
oh-my-posh font install FiraCode
# Install neovim helper
pip install neovim
# PowerShell
New-Item -ItemType SymbolicLink -Path "$env:HOMEPATH\Documents\WindowsPowerShell" -Target "$PWD\config\PowerShell" -Force
# PowerShell 7
New-Item -ItemType SymbolicLink -Path "$env:HOMEPATH\Documents\PowerShell" -Target "$PWD\config\PowerShell" -Force
# posh2k
New-Item -ItemType SymbolicLink -Path "$env:HOMEPATH\Documents\posh2k" -Target "$PWD\config\posh2k" -Force
# Terminal
Move-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" -Destination "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState.bak" -Force
New-Item -ItemType SymbolicLink -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" -Target "$PWD\config\Terminal" -Force
# Komorebi
New-Item -ItemType SymbolicLink -Path "$env:HOMEPATH\.config\komorebi" -Target "$PWD\config\komorebi" -Force
New-Item -ItemType SymbolicLink -Path "$env:HOMEPATH\.config\whkdrc" -Target "$PWD\config\whkdrc" -Force
# lazygit
New-Item -ItemType SymbolicLink -Path "$env:APPDATA\lazygit" -Target "$PWD\dots2k\config\lazygit" -Force
# Startup
New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\startup.cmd" -Target "$PWD\config\startup.cmd" -Force
# Config
$toolPaths = @(
"bat", "bundle", "cmus", "delta", "gitignore.global", "htop",
"alacritty", "kitty", "ranger", "shell", "topgrade.toml"
)
foreach ($toolPath in $toolPaths) {
$source = Join-Path $PWD "dots2k\config\$toolPath"
$destination = Join-Path $env:USERPROFILE ".config\$toolPath"
New-Item -ItemType SymbolicLink -Path $destination -Target $source -Force
}
# Home
$homePaths = @(
".bashrc", ".dircolors", ".gitconfig", ".inputrc", ".luarc.json",
".prettierrc", ".pryrc", ".pystartup", ".stylua.toml", ".vimrc", ".Xresources"
)
foreach ($homePath in $homePaths) {
$source = Join-Path $PWD "dots2k\config\$homePath"
$destination = Join-Path $env:USERPROFILE $homePath
New-Item -ItemType SymbolicLink -Path $destination -Target $source -Force
}