zshã®historyï¼ã³ãã³ãå±¥æ´ï¼ã«ã¯ããã³ããããã³ãã³ããå®è¡ãããã³ã«1è¡ãã¤è¿½å ããã¦ããã¾ãã
print
ï¼zshã®ãã«ãã¤ã³ã³ãã³ã ï¼ã使ãã°ããã®historyã«ä½ããå
¥åãã¦ãããã¨ãã§ãã¾ãã
ãã¨ãã°ã.zshrcã«
print -s "sed -i -e 's///g' *.x"
ã¨æ¸ãã¦ããã¨ãsedsed -i -e 's///g' *.x
ã¨ããæååãè£å®åè£ã«è¡¨ç¤ºããã¾ãã
print
ã³ãã³ãã¯echoã³ãã³ãã¨ä¼¼ã¦ãã¾ããã-s
ãæå®ããã¨ããªã³ãå
ãç»é¢ã§ã¯ãªãhistoryã«ãªãã¾ãï¼ã¤ã¾ããã³ãã³ãå±¥æ´ã«æååã追å ãããï¼ã
c.f. Shell Builtin Commands
zsh.sourceforge.io