Forem

Long Nguyễn Xuân
Long Nguyễn Xuân

Posted on

powershell profile - poshgit

nay dc cài lại OS cái PC trên công ty mới thấy powershell lâu nay mình dùng nó "khác khác"
hóa ra trong 1 lần nào đó mình đã mày mò và cài posh-git vào mà không nhớ là mình đã cài :D

posh-git là gì, cài đặt ra sao và dùng như thế nào thì xem ở link này: https://github.com/dahlbyk/posh-git#installation

còn cái blog này viết ra là vì vụ "Powershell Profile"

trong posh-git có 1 đoạn

by editing your PowerShell profile script and adding the command Import-Module posh-git.

nó làm mình đứng hình 5s vì "ủa cái powershell profile là cái nào ta

thì hóa ra nó là cái biến $profile

để check nó nằm đâu thì mở cửa sổ powershell bất kỳ rồi gõ $profile

Image description

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay