In your ~/.bashrc you can add something like this:
Code:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
Also make sure your ~/.bashrc is sourced from your ~/.bash_profile so the aliases above will always be set:
Code:
if [ -e ~/.bashrc ]
then
source ~/.bashrc
fi
This is a very efficient way to set "shortcuts" and I use it extensively for ssh connections ("alias bleh='ssh -X
username@host.com'" and so on) and a host of other things.
Håkan