Install zoxide
This commit is contained in:
parent
0fa5492e68
commit
eacf8f9eb9
4 changed files with 34 additions and 0 deletions
|
@ -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)";
|
||||
|
||||
|
|
12
scripts/Common/Config/zoxide/install.ps1
Normal file
12
scripts/Common/Config/zoxide/install.ps1
Normal 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
|
||||
)
|
16
scripts/Common/Config/zoxide/install.sh
Executable file
16
scripts/Common/Config/zoxide/install.sh
Executable 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;
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue