dotfiles/init.ps1

28 lines
1.2 KiB
PowerShell
Raw Normal View History

# 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)
{
Write-Host "Please install git first"
}
## 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"))"
Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## 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
# Init Starship
Invoke-Expression (&starship init powershell)