Skip to content

Instantly share code, notes, and snippets.

View chaseholdren's full-sized avatar

Chase Holdren chaseholdren

View GitHub Profile
@chaseholdren
chaseholdren / InstallPackages.ps1
Last active January 2, 2021 03:08
fresh OS install
# WSL
choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing
Add-AppxPackage -Path ~/Ubuntu.appx
# run the distro once and have it install locally with root user, unset password
RefreshEnv
Ubuntu1804 install --root
Ubuntu1804 run apt update
Ubuntu1804 run apt upgrade -y
@chaseholdren
chaseholdren / theme.toml
Last active January 19, 2026 09:49
oh-my-posh theme
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
console_title_template = "{{if and .Root (ne .UserName \"root\")}}(Admin){{end}}{{ if or .Segments.Session.SSHSession (eq .UserName \"root\") }}{{.UserName}}@{{.HostName}}{{ end }}{{ if .WSL}}[WSL-{{.OS}}] {{ end }} {{if .Segments.Git.RepoName}} {{ .Segments.Git.RepoName }}/{{ .Segments.Git.RelativeDir }} {{else}} {{if (eq .PWD \"~\")}}Home{{else}}{{.Folder}}{{end}} {{end}}"
final_space = true
version = 3
[palette]
pink = "#F5BDE6"
lavender = "#B7BDF8"
blue = "#0c7bbb"
white = "#FFFFFF"
@chaseholdren
chaseholdren / nvmish
Created May 14, 2024 05:21 — forked from assaf/nvmish
nvm use <package.json>
#!/usr/bin/env bash
#
# Run nvmish in your current project directory to use the version of io.js/Node
# as specified in package.json. It will also install that version, if not
# already installed.
#
# If package.json specifies engines.iojs, uses the corresponding version of
# io.js, otherwise, if package.json specifies engines.node, uses the
# corresponding version of Node.js.
#