Skip to content

Instantly share code, notes, and snippets.

@micahlt
Last active June 20, 2024 17:42
Show Gist options
  • Select an option

  • Save micahlt/008a28246988f848084efa8e6c410587 to your computer and use it in GitHub Desktop.

Select an option

Save micahlt/008a28246988f848084efa8e6c410587 to your computer and use it in GitHub Desktop.
Powershell Profile
# MICAH LINDLEY'S POWERSHELL PROFILE
Function up { cd .. }
Function ~ { cd ~ }
Function gocode { cd "C:\Users\Micah Lindley\Documents\Code" }
Function cbt {
start firefox $args
start microsoft-edge:$args
$argList = '{0} --profile-directory="Default"' -f $args
start chrome -ArgumentList $argList
}
Function nr { npm run $args }
Function cpbranch { git rev-parse --abbrev-ref HEAD | Set-Clipboard }
Function wai { echo $pwd }
Set-Alias crossbrowser -Value cbt
# alternate theme: peru
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\marcduiker.omp.json" | Invoke-Expression
#f45873b3-b655-43a6-b217-97c00aa0db58 PowerToys CommandNotFound module
Import-Module -Name Microsoft.WinGet.CommandNotFound
#f45873b3-b655-43a6-b217-97c00aa0db58
function mklink { cmd /c mklink $args }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment