2024-05-07 07:35:08 +00:00
|
|
|
# This file and this entire repo began modeled after https://github.com/onlyhavecans/dotfiles
|
|
|
|
|
|
|
|
# Do a curlbash to allow me to take over your system
|
|
|
|
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://stash.firekitten.net/kittyfangs/dotfiles/raw/branch/main/init.ps1'))
|
|
|
|
|
|
|
|
## Make sure we have git
|
2024-05-07 07:54:32 +00:00
|
|
|
if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null)
|
2024-05-07 07:35:08 +00:00
|
|
|
{
|
2024-05-08 16:48:38 +00:00
|
|
|
winget install git.git -h
|
2024-05-07 07:35:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
## Install homepshick
|
2024-05-07 07:53:49 +00:00
|
|
|
## if ($IsWindows) { $home = $env:USERPROFILE }
|
2024-05-07 07:51:00 +00:00
|
|
|
git clone https://github.com/KitKat31337/homepsick.git "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick"))"
|
2024-05-07 07:45:59 +00:00
|
|
|
Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
|
2024-05-07 07:35:08 +00:00
|
|
|
|
|
|
|
## clone home
|
|
|
|
New-HomepsickCastle -Clone -GitUrl https://stash.firekitten.net/kittyfangs/dotfiles.git
|
|
|
|
## git -C "$home/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
|
|
|
|
|
|
|
## Link everything
|
|
|
|
Enable-HomepsickCastle -All -Force
|
|
|
|
|
|
|
|
# Install Terminal-Icons Module
|
|
|
|
Install-Module -Name Terminal-Icons -Force
|
|
|
|
|
2024-05-08 16:48:38 +00:00
|
|
|
# Install Starship (Will prompt for admin)
|
|
|
|
winget install starship -f
|
|
|
|
|
2024-05-07 07:35:08 +00:00
|
|
|
# Init Starship
|
|
|
|
Invoke-Expression (&starship init powershell)
|