Macã§rmããæãã¿ç®±ã«å ¥ãã
èªåã¯ãã¤ããã¡ã¤ã«ãæ¶ãã¨ãrmã使ãã®ã§ãããããã¿ç®±ã®åå¨ãå¿ãã¦ããã§ãããä»æ¥ãã¾ãã¾ãããªã®è¦ã¤ãã¾ããã
rmtrash
rmtrash is a small utility that will move the file to OS X's Trash rather than obliterating the file (as rm does).
Macã§ã¯ãã¿ç®±ã¯~/.Trashã«ããã¾ãã
$ rmtrash aaa
ã¨ããã¨æ¶ãããå¤ããã«~/.Trash移åãã¾ã(ãã£ã¬ã¯ããªãok)ã
$ rmtrash -u hoge aaa
ã¨ããã¨ã¦ã¼ã¶hogeã®ãã¿ç®±ã«å
¥ãã¾ã(è¦æ¨©é)ã
ã¾ãããããã«mvãã¦ãã ããªãããªæ°ããã¾ããã©ããã¦obj-cã§æ¸ãæå³ã¯ãã£ããã ãããâ¦
ã¡ãªã¿ã«macportsããã¤ã³ã¹ãã¼ã«ã§ãã¾ãã
$ sudo port install rmtrash
ã©ãã§ããããã©rmtrashãããã¿ç®±ç©ºã«ãããw