é£çªã®ãã¡ã¤ã«ãããã¼ã£ã¨ãã£ãã¨ããè¤æ°ã®ãã¡ã¤ã«åãä¸æ°ã«ã¹ãã¼ãã«å¤ããããã¨ããããä¸åãã¤ã¡ã¾ã¡ã¾ãªãã¼ã ãªãã¦ãã£ã¦ãããªãããããªã¨ã㯠zsh ã® zmv ã使ãã¨ä¾¿å©ãªã®ã§ç´¹ä»ããã zmv ã§ä½ãã§ããã ä¾ãã°ãããªæã㧠1.txt ãã 6.txt ã¾ã§ãã¡ã¤ã«ããã£ãã¨ããã % ls 1.txt 3.txt 5.txt 2.txt 4.txt 6.txtã§ãããã¡ã¤ã«åçããã¦ãããã«ãããªã¼ãfile-1.txt ã¿ããã«é ã« file ã£ã¦ã¤ããããªã¼ãã£ã¦æã£ãã¨ãããã ãããªã¨ãã®ããã« zsh ã«ã¯ zmv ã£ã¦ã³ãã³ãããã£ã¦ããã®æã®ä¸æ¬ãªãã¼ã ãã¹ãã¼ãã«ã§ããããæ軽ãªä½¿ãæ¹ã¯ãããªæãã ããããã ~/.zshrc ã«ããæ¸ãã¦ããã¦ããã autoload -Uz zmv alias zmv='noglob zmv -W' ä¸åã®ã³ã
{{#tags}}- {{label}}
{{/tags}}