如何在 WSL 中共享 Windows 10 的 SSH keys

Posted on Fri 30 April 2021 in Tips • Tagged with Windows Subsystem for Linux

由於 WSL 跟 Windows 是兩個獨立的 OS,但是兩個 OS 都會需要用 SSH key,雖然可以各自產生獨立的 key,但是一台機器要管理多個 key 還是 …


繼續閱讀

如何暫時解決因為第三方軟體導致 Windows 10 搜尋列中的應用程式 icon 顯示異常問題

Posted on Wed 11 March 2020 in Tips • Tagged with Tips, Windows 10, Google Drive

問題原因

某些第三方的檔案同步軟體,例如 Google 的 Drive File Stream,因為會在登錄檔新增機碼,導致系統某些地方異常,使得 Windows 10 的應 …


繼續閱讀

如何在 Visual Studio Code 中使用 Cascadia Code 字體

Posted on Mon 30 December 2019 in Tips • Tagged with Visual Studio Code, Cascadia Code

Cascadia Code 是微軟在 Build 2019 隨著Windows Terminal一起發表的字體,是一種專為命令列與程式碼編輯器開發的等寬字體,並支援程式合字或連 …


繼續閱讀

如何解決執行 bash script 時遇到 " '\r': command not found" 的問題

Posted on Wed 24 April 2019 in Tips • Tagged with Bash, Shell scripts, Linux, Windows Subsystem for Linux

前言

在使用WSL執行 bash script 有時會遇到像這樣的錯誤:

-bash: '\r': command not found

經過搜尋之後在stackoverflow找到解答,該錯誤訊息是因為 Windows 的 newline 符 …


繼續閱讀