Installation
Shell Scripts provides POSIX shell and PowerShell install scripts to download any collection of scripts from the repository. The following command shows the list of downloadable scripts from the repository.
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- --list
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- --list
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- --list
powershell
powershell { & ([ScriptBlock]::Create((iwr -useb https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.ps1))) --list }
The following command will install the packup script. Other scripts can be installed by replacing the packup
argument.
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- packup
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- packup
sh
curl -LSfs https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.sh | sh -s -- packup
powershell
powershell { & ([ScriptBlock]::Create((iwr -useb https://raw.githubusercontent.com/scruffaluff/shell-scripts/main/install.ps1))) packup }
WARNING
On Windows, PowerShell will need to run as administrator if the --user
flag is not 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