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.
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.
Name | Description |
---|---|
deno | Installs Deno JavaScript runtime. |
jq | Installs Jq JSON parser. |
just | Installs Just command runner. |
nushell | Installs Nushell structured data shell. |
scripts | Installs programs from the following scripts table. |
uv | Installs Uv Python package manager. |
The following command installs Deno. To execute the other installers, replace deno
with the installer name.
curl -LSfs https://scruffaluff.github.io/scripts/install/deno.sh | sh
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/deno.ps1)))
http get https://scruffaluff.github.io/scripts/install/deno.nu | nu -c $"($in | decode); main"
To view usage options, run the following command.
curl -LSfs https://scruffaluff.github.io/scripts/install/deno.sh | sh -s -- --help
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/deno.ps1))) --help
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.
Name | Description |
---|---|
caffeinate | Prevent system from sleeping during a program. |
clear-cache | Remove package manager caches. |
fdi | Interactive Fd searcher. |
mlab | Wrapper script for running Matlab as a CLI. |
rgi | Interactive Ripgrep searcher. |
trsync | Rsync for one time remote connections. |
tscp | SCP for one time remote connections. |
tssh | SSH for one time remote connections. |
vimu | Convenience 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.
curl -LSfs https://scruffaluff.github.io/scripts/install/scripts.sh | sh -s -- clear-cache rgi
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/scripts.ps1))) clear-cache rgi
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.
curl -LSfs https://scruffaluff.github.io/scripts/install/scripts.sh | sh -s -- --help
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/scripts.ps1))) --help
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.
Name | Description |
---|---|
augraph | Audio plotting example application. |
greeter | Greeter example application. |
The following command will install the augraph and greeter apps. Other apps can be installed by replacing the program names.
curl -LSfs https://scruffaluff.github.io/scripts/install/apps.sh | sh -s -- augraph greeter
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/apps.ps1))) augraph greeter
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.
curl -LSfs https://scruffaluff.github.io/scripts/install/apps.sh | sh -s -- --help
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/install/apps.ps1))) --help
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.
Name | Description |
---|---|
purge-snap | Remove all traces of the Snap package manager. |
tmate-session | Install 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.
curl -LSfs https://scruffaluff.github.io/scripts/action/tmate-session.sh | sh
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/action/tmate-session.ps1)))
To view usage options, run the following command.
curl -LSfs https://scruffaluff.github.io/scripts/action/tmate-session.sh | sh -s -- --help
& ([ScriptBlock]::Create((irm https://scruffaluff.github.io/scripts/action/tmate-session.ps1))) --help