Skip to content

Instantly share code, notes, and snippets.

@m0hadang
Last active January 10, 2026 04:55
Show Gist options
  • Select an option

  • Save m0hadang/42f309c4ae4cb91541571726dd9bc562 to your computer and use it in GitHub Desktop.

Select an option

Save m0hadang/42f309c4ae4cb91541571726dd9bc562 to your computer and use it in GitHub Desktop.
windows terminal

windows terminal

open command

launch it from the command line to the current directory

  • wt -d .
  • wt -d . cmd
  • wt -d . wsl

alias command

Setting Up Aliases

  • Set-Alias [alias] [target command]
  • ex
    • Set-Alias vim nvim
    • Set-Alias vi nvim

Check Alias Configuration

  • Get-Alias
  • ex
    Alias           vi -> nvim.exe
    Alias           vim -> nvim.exe
    

profile

Finding the Profile Path

> $profile

C:\Users\(username)\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

Microsoft.PowerShell_profile.ps1

function kubectl { minikube kubectl -- $args }
Set-Alias -Name k -Value kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment