hoge[tab]ã§ãµãã³ãã³ããè£å®ããã ãµãã³ãã³ãã®å¾ã¯ãã¡ã¤ã«ããã£ã¬ã¯ããªãè£å®ãããããã«ã ãµãã³ãã³ãã¨ãã¡ã¤ã«åãè£å®ãã ä¸è¨ã.zshrcã«è¨è¼ãã¦exec $SHELL ãã£ã¦ãããã¨ã¯ compdefã§_hogecmdã¨ããè£å®ç¨functionãå®ç¾©ããhogeã³ãã³ããå®è¡ããã¨ãã«å¼ã³åºãããããã«ã functionå ã®cmdsã§è£å®ããããµãã³ãã³ããåæ CURRENT == 2ã§hogeã®ãã¨ã«è£å®ãããã®ã¯ãµãã³ãã³ãã ãã¨æå® _describeã§è£å®åè£ã§è¡¨ç¤ºãããã¨ãã«subcommandã¨ããã°ã«ã¼ãã«ãªãããã«ãã¦ãã ãµãã³ãã³ãã®ãã¨ã¯_filesã§ãã¡ã¤ã«ã¨ãã£ã¬ã¯ããªãè£å®ãããããã« åèã«ãªããµã¤ã zshã®è£å®é¢æ°ã®æ¸ãæ¹ãã¾ã¨ã¾ã£ã¦ããã¨ãããã»ã¨ãã©ç¡ãã®ã§ä¸è¨ãé常åèã«ãªãã¾ãã zshè£å®é¢æ°ãèªä½ããã¨ä¾¿å© -
{{#tags}}- {{label}}
{{/tags}}