Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

protip: always put -i first.

I avert the problem by having rm run interactively by default:

    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'

http://aniggler.tumblr.com/post/44530262158/the-first-thing-...


Until one day, lulled into a false sense of security, you find yourself on a system without these aliases…


I usually don't alias the command itself; that's bad form. It limits what you can do and screws you when you are using an environment without your alias when you forget it. Live and learn.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: