Skip to content

Instantly share code, notes, and snippets.

@BrentHumphreys
Last active October 21, 2022 15:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrentHumphreys/93732bd8ca99333358d51311790dc76f to your computer and use it in GitHub Desktop.
Save BrentHumphreys/93732bd8ca99333358d51311790dc76f to your computer and use it in GitHub Desktop.
setup essential apps on a new laptop

The attached files are used to aid in setting up a new laptop

  • laptopsetup.ps1 -- a script to automate installing software frequently used
  • ohmyposhv3-b2.json -- Configuration file for OhMyPosh Powershell prompt. Put in $PSHOME
  • Microsoft.PowerShell_profile.ps1 -- bootstrap the powershell profile
winget install -e --id Microsoft.PowerShell
winget install -e --id Docker.DockerDesktop
winget install -e --id JanDeDobbeleer.OhMyPosh
winget install -e --id Microsoft.VisualStudio.2022.Enterprise
winget install -e --id Microsoft.VisualStudioCode
winget install -e --id Canonical.Ubuntu.2204
winget install -e --id Git.Git
winget install -e --id Microsoft.WindowsTerminal
winget install -e --id Notepad++.Notepad++
winget install -e --id WinMerge.WinMerge
winget install -e --id Microsoft.SQLServerManagementStudio
winget install -e --id Microsoft.PowerToys
winget install -e --id Devolutions.RemoteDesktopManagerFree
winget install -e --id Chocolatey.ChocolateyGUI
winget install -e --id VideoLAN.VLC
winget install -e --id OBSProject.OBSStudio
winget install -e --id OpenJS.NodeJS
winget install -e --id Microsoft.AzureDataStudio
winget install -e --id Microsoft.AzureStorageExplorer
winget install -e --id Microsoft.MouseWithoutBorders
winget install -e --id icsharpcode.ILSpy
winget install -e --id GitHub.GitHubDesktop
winget install -e --id Elgato.StreamDeck
winget install -e --id Elgato.ControlCenter
winget install -e --id JGraph.Draw
winget install -e --id Microsoft.PowerBI
winget install -e --id Microsoft.AzureDataCLI
winget install -e --id Microsoft.AzureDataStudio
winget install -e --id Microsoft.AzureCLI
winget install -e --id SonicWALL.GlobalVPN
winget install -e --id Microsoft.AzureCLI
choco install windirstat -y
choco install agentransack -y
choco install kubernetes-helm -y
oh-my-posh --init --shell pwsh --config 'C:\Users\bhumphreys\OneDrive - Gray\Documents\PowerShell\ohmyposhv3-b2.json' | Invoke-Expression
Import-Module -Name Terminal-Icons
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#ff479c",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
},
"style": "diamond",
"template": " \ue5ff {{ .Path }} ",
"trailing_diamond": "\ue0b0",
"type": "path"
},
{
"background": "#fffb38",
"foreground": "#193549",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ",
"type": "git"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"type": "dotnet"
},
{
"background": "#ffff66",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \uf0e7 ",
"type": "root"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " \ue23a{{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "exit"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment