ãã¡ã®zshããã¾ãã«å¯æãã®ã§ãã¡ãã£ã¨ç´¹ä»ãã¾ãã çªç¶ã§ãããçµäºã¹ãã¼ã¿ã¹ã¨ãããã®ãããã¾ãã int main () { return 0; // â ããã !!! } ã·ã§ã«ã®ç¹æ®å¤æ°ã§ã¯ã$?ãããã«ãããã¾ãã ãã¨ãzshã«ã¯Conditional Substitutionã¨ãããã®ãããã¾ããæ§æã¯æ¬¡ã®ãããªæãã§ãã %(x.true-text.false-text)ããã°ã©ãã³ã°ã§ããè¦ãä¸é æ¼ç®åã§ããã éå ·ã¯æã£ã! ããPROMPTã !ã¾ãã¯ã·ã§ã«ã§ç¢ºèªãã¦ã¿ãã! PROMPT="%(?.OK.NG) " ããããã Conditional Substitutionã®"."ã¯, ãªãã§ãããã¿ããã PROMPT="%(?#x.y#a.b) " ã»ãã»ã ã¨ãã訳ã§ãzshãå¯æããã¡ããã! PROMPT="%(?!(._.)/!(;_;%)?) "
{{#tags}}- {{label}}
{{/tags}}