fix: Fixed linux paths in init.ps1

This commit is contained in:
Kitty Fangs 2024-05-07 07:51:00 +00:00
parent bd1cd924ce
commit 629301ef70
1 changed files with 1 additions and 2 deletions

View File

@ -10,9 +10,8 @@ if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -ne $null)
} }
## Install homepshick ## Install homepshick
$home = $env:HOME
if ($IsWindows) $home = $env:USERPROFILE if ($IsWindows) $home = $env:USERPROFILE
git clone https://github.com/KitKat31337/homepsick.git [IO.Path]::Combine($home, ".homesick", "repos", "homepsick") 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 Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## clone home ## clone home