fix: Fixed import-module in powershell profile and init.ps1

This commit is contained in:
Kitty Fangs 2024-05-07 07:45:59 +00:00
parent e90e0a023f
commit bd1cd924ce
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
## Load Homepsick ## Load Homepsick
Import-Module -Name [IO.Path]::Combine($home, ".homesick", "repos", "homepsick") -Force Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## Update my Homepsick repos ## Update my Homepsick repos
Update-HomepsickCastle -All Update-HomepsickCastle -All

View File

@ -13,7 +13,7 @@ if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -ne $null)
$home = $env:HOME $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") -Force Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## clone home ## clone home
New-HomepsickCastle -Clone -GitUrl https://stash.firekitten.net/kittyfangs/dotfiles.git New-HomepsickCastle -Clone -GitUrl https://stash.firekitten.net/kittyfangs/dotfiles.git