|
|
A shell function to make 'rm' move files to the trash
Open Terminal, and edit ~/.bash_profile (this is a script which is run every time you open a Terminal) Just curious: what if you don't use the bash shell?
---
A shell function to make 'rm' move files to the trash
If you're using csh or tsch, add this to your .cshrc or .tcshrc file:
Feel free to call the alias "rmm" or something else that suits you. I understand the argument for doing that, but I'm too lazy to remember a million ways to call the same thing. I have an "ll" alias for "ls -l", and it's one of the WORST things, as I type "ll" all the time, even on accounts/computers. I'd rather have my alias do something instead of having me to have to re-type commands over and over. Even for "rm", as I do not accidentally delete someone else's Desktop very often...
Rewriting for tcsh, etc.
Then you'll have to figure out how to rewrite the function for tcsh, or whatever you do use. :) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|