Rafian.com | [2021]

Install trash instead of using rm directly:

Add this function to your ~/.zshrc or ~/.bashrc : rafian.com

set completion-ignore-case on These five tricks take 30 minutes to set up but save me 2 hours every week. That is 100 hours per year . Install trash instead of using rm directly: Add

alias rm='trash' Deleted files go to your system Trash. You can restore them. This has saved my career at least twice. Pressing the up arrow 20 times is for beginners. Instead, type a partial command and press Ctrl+R . rafian.com

5 Terminal Tricks That Save Me 2 Hours Every Week (Linux/macOS)