Streamline zoxide installation

This commit is contained in:
Manuel Thalmann 2024-07-16 14:28:32 +02:00
parent 92d672ab0e
commit 5b2939b7a5
4 changed files with 46 additions and 0 deletions

View file

@ -44,6 +44,7 @@ begin
source "$dir/../Software/openssh/main.fish"
source "$dir/../Software/vim/main.fish"
source "$dir/../Software/git/main.fish"
source "$dir/../Software/zoxide/main.fish"
end
if collectionActive common

View file

@ -0,0 +1,15 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
source "$dir/../../../Common/Software/zoxide/main.fish"
function installSW
yayinst \
zoxide
configureSW
end
runInstaller $argv
end

View file

@ -0,0 +1,12 @@
#!/bin/pwsh
. "$PSScriptRoot/../powershell/profile.ps1";
Add-PowerShellProfileStatement `
-System `
-Category "zoxide" `
-Statement $(
@(
"# zoxide",
$(Get-ScriptInitializer "zoxide init powershell | Out-String")
) -join [System.Environment]::NewLine
)

View file

@ -0,0 +1,18 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
configureSW
end
function configureSW -V dir
source "$dir/../bash/profile.fish"
echo 'eval "$(zoxide init bash)"' | installBashProfile "zoxide"
echo "zoxide init fish | source" | installFishProfile "zoxide"
sudo pwsh -NoProfile "$dir/install.ps1"
end
runInstaller $argv
end