Skip to content

Instantly share code, notes, and snippets.

@xieyuheng
Created January 5, 2016 04:00
Show Gist options
  • Save xieyuheng/08ba14d1cfa4a912afb5 to your computer and use it in GitHub Desktop.
Save xieyuheng/08ba14d1cfa4a912afb5 to your computer and use it in GitHub Desktop.
命令行中文補全
假設當前路徑下有且僅有 '小學' '數書' '書法' 三個子路徑
當我在命令行裏有如下輸入 ('|' 代表光標的位置)
cd x|
此時按 <tab> 將爲我做如下補全
cd 小學/|
當有
cd s|
應有如下補全選項
cd s|
數書/ 書法/
當有
cd ss|
應補全
cd 數書/|
當有
cd sf|
應補全
cd 書法/|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment