oh-my-posh의 오 마이 포쉬
11603 단어 powershell
สิ่ง ที่ต้อง มีก่อน
Powerline font โดยให้ทำ การติดตั้ง Cascadia Code PL หรือ Cascadia Mono PL
더 보기
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
notepad $PROFILE
แล้ว เพิ่ม ข้อ ความ ตาม นี้ นี้Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
fontFace
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"fontFace": "Cascadia Code PL",
"fontSize": 14,
"hidden": false
},
หรือจะกำหนดที่ 기본 เพื่อให้ใช้งาน 글꼴 เดียวกันทั้ง หมดก็ได้
"defaults": {
"fontFace": "Cascadia Code PL",
"fontSize": 14
},
ใช้ 드라큘라 다크 테마
"schemes": [
{
"name": "Dracula",
"cursorColor": "#F8F8F2",
"selectionBackground": "#44475A",
"background": "#282A36",
"foreground": "#F8F8F2",
"black": "#21222C",
"blue": "#BD93F9",
"cyan": "#8BE9FD",
"green": "#50FA7B",
"purple": "#FF79C6",
"red": "#FF5555",
"white": "#F8F8F2",
"yellow": "#F1FA8C",
"brightBlack": "#6272A4",
"brightBlue": "#D6ACFF",
"brightCyan": "#A4FFFF",
"brightGreen": "#69FF94",
"brightPurple": "#FF92DF",
"brightRed": "#FF6E6E",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFFA5"
}
]
colorScheme
ที่ profiles
"profiles": {
"defaults": {
"colorScheme" : "Dracula"
}
}
เปลี่ยน 디렉토리 เริ่่ต้น เป่อเปิด PowerShell
จะต้อง ไปแก้ไข PowerShell 프로필 โดยใช้คำสั่ง
notepad $PROFILE
แล้วเพิ่มข้อความนี6 1045 1415Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Set-Location D:\workspaces
เสร็จแล้วจะ ได้
Visual Studio Code에서 PowerShell 사용
{
"terminal.integrated.fontFamily": "Cascadia Code PL",
"terminal.integrated.fontSize": 14,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.external.windowsExec": "C:\\Users\\sompr\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe",
}
그레잇 🎉🎉🎉
Reference
이 문제에 관하여(oh-my-posh의 오 마이 포쉬), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/somprasongd/oh-my-posh-18ef텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)