Streamline zoxide
installation
This commit is contained in:
parent
92d672ab0e
commit
5b2939b7a5
|
@ -44,6 +44,7 @@ begin
|
||||||
source "$dir/../Software/openssh/main.fish"
|
source "$dir/../Software/openssh/main.fish"
|
||||||
source "$dir/../Software/vim/main.fish"
|
source "$dir/../Software/vim/main.fish"
|
||||||
source "$dir/../Software/git/main.fish"
|
source "$dir/../Software/git/main.fish"
|
||||||
|
source "$dir/../Software/zoxide/main.fish"
|
||||||
end
|
end
|
||||||
|
|
||||||
if collectionActive common
|
if collectionActive common
|
||||||
|
|
15
scripts/Arch/Software/zoxide/main.fish
Normal file
15
scripts/Arch/Software/zoxide/main.fish
Normal 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
|
12
scripts/Common/Software/zoxide/install.ps1
Normal file
12
scripts/Common/Software/zoxide/install.ps1
Normal 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
|
||||||
|
)
|
18
scripts/Common/Software/zoxide/main.fish
Normal file
18
scripts/Common/Software/zoxide/main.fish
Normal 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
|
Loading…
Reference in a new issue