Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To alias, or not to alias #7

Closed
louisremi opened this issue Feb 18, 2016 · 2 comments
Closed

To alias, or not to alias #7

louisremi opened this issue Feb 18, 2016 · 2 comments

Comments

@louisremi
Copy link

Unless there's a distinction I do not understand, the Readme both advise aliasing rm to trash... and not doing it.

You should not alias rm to trash however as that would break most scripts relying on rm behavior.

Add alias rm=trash to your .zshrc/.bashrc to reduce typing & safely trash files: $ rm unicorn.png.

@sindresorhus
Copy link
Owner

The first is wrong. I guess when I wrote this I was not aware aliases doesn't apply in scripts, but only when run interactively.

@louisremi
Copy link
Author

Perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants