Skip to content

HuskyHacks/shell-setup

 
 

Repository files navigation

Shell Setup

Dotfiles and configs for husky@mattlab.

Forked from and inspired by Taggart's shell setup repo

Quickstart

Linux

No need to invoke sudo when executing the install script. The script will invoke sudo and prompt for credentials on its own.

One-liner

curl https://raw.githubusercontent.com/HuskyHacks/shell-setup/main/quickstart.sh | sh

Clone and install

git clone https://github.com/HuskyHacks/shell-setup.git
cd shell-setup
./setup.sh

This sets up fish as the default prompt, but my bashrc file is in there too if you want to use bash instead.

Windows

Use PowerShell 7 (pwsh) and Git for Windows (for git on PATH).

PowerShell one-liner

Runs under PowerShell 7 (pwsh). If you paste this into Windows PowerShell 5.1, quickstart.ps1 will restart the same steps in pwsh as long as PowerShell 7 is installed (winget install Microsoft.PowerShell).

irm https://raw.githubusercontent.com/HuskyHacks/shell-setup/main/quickstart.ps1 | iex

Clone and install

git clone https://github.com/HuskyHacks/shell-setup.git
Set-Location shell-setup
./setup.ps1

Use ./setup.ps1 -Force to overwrite an existing Starship config. If winget is missing, setup.ps1 downloads the latest App Installer bundle and dependencies from the winget-cli releases and installs them for your user (no Store required). When winget is available, the script also tries to install Starship automatically. Use a Nerd Font in your terminal for glyphs.

PowerShell (pwsh)

On Linux/WSL, ./setup.sh installs PowerShell on Ubuntu (via packages.microsoft.com), copies powershell/Microsoft.PowerShell_profile.ps1 to ~/.config/powershell/, and reuses the same Starship/starship.toml as Fish/Bash.

On Windows, use the Windows quickstart (quickstart.ps1 or ./setup.ps1 after cloning).

About

Repo for automating shell config on new machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 76.1%
  • PowerShell 23.9%