Closed andbroby closed 9 years ago
Would you mind adding the ZSH counterpart too? http://stackoverflow.com/a/23259088/64949
Yeah, sure. Even if you use zsh practically all shell scripts will still be executed by bash, so I'll just add a common_profile that's sourced by both BASH_ENV
and .zshrc
. That way you'll get the alias in bash scripts and in your interactive z shell.
Whew. That should cover it.
Oh, wow, didn't know it were that complicated on ZSH. Thank you! :)
See: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
Non-interactive shells don't expand the alias so if you want scripts to use rm -i you'll have to enable it in your BASH_ENV.