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
|
2024-05-22 16:52:44 +00:00
|
|
|
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://stash.firekitten.net/maulerant/dotfiles/raw/branch/main/init.ps1'))
|
2024-05-07 07:35:08 +00:00
|
|
|
|
|
|
|
## 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
|
2024-05-22 16:53:51 +00:00
|
|
|
New-HomepsickCastle -Clone -GitUrl https://stash.firekitten.net/maulerant/dotfiles.git
|
2024-05-07 07:35:08 +00:00
|
|
|
## git -C "$home/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
|
|
|
|
2024-05-10 17:01:31 +00:00
|
|
|
## Lets get the bash version since we are initing in powershell
|
|
|
|
New-HomepsickCastle -Clone -GitUrl https://github.com/andsens/homeshick.git
|
|
|
|
|
2024-05-07 07:35:08 +00:00
|
|
|
## 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)
|