Install zoxide

This commit is contained in:
Manuel Thalmann 2024-04-04 17:54:18 +02:00
parent 0fa5492e68
commit eacf8f9eb9
4 changed files with 34 additions and 0 deletions

View file

@ -34,6 +34,7 @@ sudo pkgfile --update;
. "../Software/vim/install.sh";
. "../Software/git/install.sh";
. "../Software/aliae/install.sh";
. "../../Common/Config/zoxide/install.sh";
sudo chsh $USER --shell "$(which fish)";

View file

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

View file

@ -0,0 +1,16 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../bash/profile.sh";
. "../fish/profile.sh";
{
echo 'eval "$(zoxide init bash)"';
} | addBashProfile "zoxide";
{
echo "zoxide init fish | source";
} | addFishProfile "zoxide";
sudo pwsh -NoProfile ./install.ps1;
popd > /dev/null;

View file

@ -30,6 +30,11 @@ function Restore-GenericApps([Context] $context) {
Restore-Git $context;
Restore-PuTTY $context;
# Essentials
choco install -y zoxide;
winget install --accept-source-agreements --accept-package-agreements -e --id junegunn.fzf;
. "$PSScriptRoot/../../Common/Config/zoxide/install.ps1";
# Design
choco install -y `
nerd-fonts-CascadiaCode;