Hacker News new | ask | show | jobs
by spacebuffer 278 days ago
I don't think aliasing rm is a good idea because you might get used to rm=safe and cause a problem on an ssh server where this utility isn't installed
2 comments

Good point~

I use fish shell abbreviations, now.

`rm` expands into `trash` so I know it's been "aliased."

I don't ssh into servers often, but hopefully I'd notice `rm` didn't expand.

--

On a similar note, I used to alias `cd` to zoxide. But now I just use the default `j` to avoid confusion with `cd`

For some rarely use server, this could be the case. However, any frequently used servers that will always be some base configuration via ansible, dotfiles etc. that can add the base alias to the shell.