Skip to content

Installation

Scripts provides Bash and PowerShell installer scripts to download any collection of scripts from the repository.

WARNING

On Windows, PowerShell will need to run as administrator if the --global flag is used. Additionally, the security policy must allow for running remote PowerShell scripts. If needed, the following command will update the security policy for the current user.

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Installers

The installer programs, from the following table, can be executed by piping them into Bash and PowerShell for Unix systems and Windows respectively. Additionally, the Nushell installer programs work on any platform.

NameDescription
denoInstalls Deno JavaScript runtime.
jqInstalls Jq JSON parser.
justInstalls Just command runner.
nushellInstalls Nushell structured data shell.
scriptsInstalls programs from the following scripts table.
uvInstalls Uv Python package manager.

The following command installs Deno. To execute the other installers, replace deno with the installer name.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/deno.sh | sh
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/deno.ps1)))
nushell
http get https://scruffaluff.github.io/scripts/install/deno.nu | nu -c $"($in | decode); main"

To view usage options, run the following command.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/deno.sh | sh -s -- --help
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/deno.ps1))) --help
nushell
http get https://scruffaluff.github.io/scripts/install/deno.nu | nu -c $"($in | decode); main --help"

Scripts

The programs, from the following table, can be installed with the https://scruffaluff.github.io/scripts/install/scripts.sh for Unix systems and https://scruffaluff.github.io/scripts/install/scripts.ps1 for Windows.

NameDescription
caffeinatePrevent system from sleeping during a program.
clear-cacheRemove package manager caches.
fdiInteractive Fd searcher.
mlabWrapper script for running Matlab as a CLI.
rgiInteractive Ripgrep searcher.
trsyncRsync for one time remote connections.
tscpSCP for one time remote connections.
tsshSSH for one time remote connections.
vimuConvenience script for QEMU and Virsh.

The following command will install the clear-cache and rgi scripts. Other scripts can be installed by replacing the program names.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/scripts.sh | sh -s -- clear-cache rgi
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/scripts.ps1))) clear-cache rgi
nushell
http get https://scruffaluff.github.io/scripts/install/scripts.nu | nu -c $"($in | decode); main clear-cache rgi"

To view usage options, run the following command.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/scripts.sh | sh -s -- --help
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/scripts.ps1))) --help
nushell
http get https://scruffaluff.github.io/scripts/install/scripts.nu | nu -c $"($in | decode); main --help"

Apps

The programs, from the following table, can be installed with the https://scruffaluff.github.io/scripts/install/apps.sh for Unix systems and https://scruffaluff.github.io/scripts/install/apps.ps1 for Windows.

WARNING

The following apps are demos with little functionality.

NameDescription
augraphAudio plotting example application.
greeterGreeter example application.

The following command will install the augraph and greeter apps. Other apps can be installed by replacing the program names.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/apps.sh | sh -s -- augraph greeter
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/apps.ps1))) augraph greeter
nushell
http get https://scruffaluff.github.io/scripts/install/apps.nu | nu -c $"($in | decode); main augraph greeter"

To view usage options, run the following command.

sh
curl -LSfs https://scruffaluff.github.io/scripts/install/apps.sh | sh -s -- --help
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/apps.ps1))) --help
nushell
http get https://scruffaluff.github.io/scripts/install/apps.nu | nu -c $"($in | decode); main --help"

Actions

The one-time usage programs, from the following table, can be executed by piping them into Bash and PowerShell for Unix systems and Windows respectively.

NameDescription
purge-snapRemove all traces of the Snap package manager.
tmate-sessionInstall and run Tmate for CI pipelines.

The following command runs the Tmate Session script. To execute the other actions, replace tmate-session with the installer name.

sh
curl -LSfs https://scruffaluff.github.io/scripts/action/tmate-session.sh | sh
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/action/tmate-session.ps1)))

To view usage options, run the following command.

sh
curl -LSfs https://scruffaluff.github.io/scripts/action/tmate-session.sh | sh -s -- --help
powershell
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/action/tmate-session.ps1))) --help

Released under the MIT License.