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
iwr -useb https://scruffaluff.github.io/scripts/install/deno.ps1 | iex
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
powershell { iex "& { $(iwr -useb 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.
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.

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
powershell { iex "& { $(iwr -useb https://scruffaluff.github.io/scripts/install/scripts.ps1) } 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
powershell { iex "& { $(iwr -useb https://scruffaluff.github.io/scripts/install/scripts.ps1) } --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
iwr -useb https://scruffaluff.github.io/scripts/action/tmate-session.ps1 | iex

To view usage options, run the following command.

sh
curl -LSfs https://scruffaluff.github.io/scripts/action/tmate-session.sh | sh -s -- --help
powershell
powershell { iex "& { $(iwr -useb https://scruffaluff.github.io/scripts/action/tmate-session.ps1) } --help" }

Released under the MIT License.