diff --git a/.obsidian/workspace b/.obsidian/workspace index 7582df3..6c9ac99 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -10,7 +10,7 @@ "type": "markdown", "state": { "file": "02. PARA/03. Resources(資源)/Tool Setup/Windows Terminal.md", - "mode": "preview", + "mode": "source", "source": true } } diff --git a/02. PARA/03. Resources(資源)/Tool Setup/Windows Terminal.md b/02. PARA/03. Resources(資源)/Tool Setup/Windows Terminal.md index 0317f32..809e5e3 100644 --- a/02. PARA/03. Resources(資源)/Tool Setup/Windows Terminal.md +++ b/02. PARA/03. Resources(資源)/Tool Setup/Windows Terminal.md @@ -156,6 +156,7 @@ unset THEME ``` ## oh-my-posh on bash +以下步驟都是在 [Windows Terminal](https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701) 中的 Git bash[^1] 執行。 1. 先下載一個你喜歡的theme: [https://ohmyposh.dev/docs/themes](https://ohmyposh.dev/docs/themes) 2. 下載並安裝字型:[Caskaydia Cove Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip?WT.mc_id=-blog-scottha) 3. Install OhMyPosh: `winget install JanDeDobbeleer.OhMyPosh` @@ -163,8 +164,11 @@ unset THEME `eval "$(oh-my-posh --init --shell bash --config ~/OneDrive/appConfigs/ohmyposh/themes/montys.omp.json)"` 注意最後的 `montys.omp.json` 就是第一步下載的theme,這邊要改成你自己的路徑。 5. 修改 Windows Terminal 的 setting.json,將字型改為 `CaskaydiaCove NF` + ![[20220614221618_oh-my-posh_setting.png|600]] 6. 成果 - ![[Pasted image 20220614220342.png|600]] + ![[20220614220342_oh-my-posh_result.png|600]] + +[^1]: 設定 可以參考:[Windows Terminal's 設定 Git Bash 和 SSH @ 傑克! 真是太神奇了! :: 痞客邦 ::](https://magicjackting.pixnet.net/blog/post/225162505-windows-terminal's-%E8%A8%AD%E5%AE%9A-git-bash-%E5%92%8C-ssh) ## Reference - [Windows Terminal 美化 for WSL 2 Ubuntu (zsh + zim + powerlevel10k)](http://www.kenming.idv.tw/windows-terminal-%e7%be%8e%e5%8c%96-for-wsl-2-ubuntu-zsh-zim-powerlevel10k/) diff --git a/attachments/Pasted image 20220614220342.png b/attachments/20220614220342_oh-my-posh_result.png similarity index 100% rename from attachments/Pasted image 20220614220342.png rename to attachments/20220614220342_oh-my-posh_result.png diff --git a/attachments/20220614221618_oh-my-posh_setting.png b/attachments/20220614221618_oh-my-posh_setting.png new file mode 100644 index 0000000..f986b79 Binary files /dev/null and b/attachments/20220614221618_oh-my-posh_setting.png differ