Skip to content

Instantly share code, notes, and snippets.

@trinhvanminh
Created July 21, 2025 03:57
Show Gist options
  • Select an option

  • Save trinhvanminh/33a12162d8018e683c4c9b69e2b66750 to your computer and use it in GitHub Desktop.

Select an option

Save trinhvanminh/33a12162d8018e683c4c9b69e2b66750 to your computer and use it in GitHub Desktop.
git aliases for powsershell profile
// notepad $profile
function cm { git commit @args }
function ad { git add @args }
function st { git status }
function pl { git pull }
function pu { git push }
function lg { git log --oneline --graph --all }
function co { git checkout @args }
function br { git branch }
function mg { git merge @args }
function df { git diff @args }
@trinhvanminh
Copy link
Author

oh-my-posh

oh-my-posh init pwsh --config 'C:\Users\minh.trinh\AppData\Local\Programs\oh-my-posh\themes\robbyrussell.omp.json' | Invoke-Expression

zoxide (enhance cd tool)

Invoke-Expression (& { (zoxide init powershell | Out-String) })

fnm (fast node management - faster version of nvm)

fnm env --use-on-cd | Out-String | Invoke-Expression

pnpm

set-alias -name pn -value pnpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment