Skip to content

Instantly share code, notes, and snippets.

@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.json
Last active January 31, 2024 22:49
oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} in {{.PWD}}",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#E06C75",
@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.
#