ã¾ã, ä»ã®ã·ã§ã«ãã使ãã®äººã«ã¯ããããªãã. aliasã³ãã³ãã®-sã使ããã®ã¯ zsh 4.2.x- ã§, ä»ã®ã·ã§ã«ã§ã¯å®è£ ããã¦ããªãã¨æãã¾ã. ãã¨, ããæ¢ã« alias -s ç¥ã£ã¦ããã¼ã£ã¦äººã¯èªã¾ãªãã¦ããã§ã. alias -s ã£ã¦ä½ï¼ æã£ãã³ãã³ãã®å¾ã(suffix)ãè¦ã¦, é©å½ã«å®ãããã£ã¦ããããã¤ã§ã. 次ã®ä¾ãè¦ã¦ä¸ãã. ~$ echo "print ('hello, world')" > hello.py ~$ python hello.py hello, world ~$ alias -s py=python py=python ~$ ./hello.py hello, world ~$ Pythonã®ã³ã¼ã㯠python hello.py ã§å®è¡åºæ¥ã¾ãã, ãå°»ã py ãªã python ã使ãã¾ã, ã¨aliasãã¦ããã°, ./
{{#tags}}- {{label}}
{{/tags}}