→ lltzpp: 左轉 linux 版問看看(? 12/27 16:46
※ parity:轉錄至看板 Linux 12/27 21:24
謝謝!
※ 編輯: parity (118.161.189.177 臺灣), 12/27/2022 21:32:43
推 Luos: Double quote? 說不定那裡有個空格 12/27 23:39
謝謝你。diff後,第一個檔名前先打",也會自動完成,但是第二個檔名之前打"就不行了
而且vimdiff是正常的說。
※ 編輯: parity (140.115.25.203 臺灣), 12/28/2022 09:03:33
推 rickieyang: 轉gif 速度慢了一半… 12/28 18:46
謝謝你 我的zsh和omz版本分別是
zsh 5.8.1 (x86_64-apple-darwin22.0)
master (d41ca84)
跟你的不同
※ 編輯: parity (118.161.189.177 臺灣), 12/28/2022 22:04:45
另外這招有點麻煩,但可行:先打第二個檔名,再退回去打第一個檔名
※ 編輯: parity (118.161.189.177 臺灣), 12/28/2022 22:05:54
→ guanting886: 你可以考慮改用 kaleidoscope 來比對東西這套蠻方便 12/29 01:07
→ guanting886: 的 12/29 01:07
→ guanting886: 我用裡面的 ksdiff 沒這個問題 看起來是 oh my zsh 12/29 01:08
→ guanting886: 解讀diff指令的時候可能認為你要加參數 12/29 01:08
→ guanting886: 因為一直跳 - 搞得我好像要補什麼其他參數上去 12/29 01:09
推 guanting886: 我用omz update升到master (a3c579b)一樣 12/29 01:11
→ guanting886: zsh 一樣5.8.1 12/29 01:11
推 guanting886: 另一種思路是 你直接讓omz 認不得這個指令 12/29 01:15
→ guanting886: 你可以在 .zshrc 宣告一個 function 12/29 01:16
→ guanting886: function diff2() { diff $1 $2 } 12/29 01:16
→ guanting886: 這樣執行 diff2 時就可以自動完成了 12/29 01:16
→ guanting886: 若是用 alias 去指一樣會被誤判 12/29 01:18