X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Faliases.in;h=023ed60b521bb95249122a259007e09d7184a75a;hb=e705d5d7358e42a35dba8994f0ea4c445e4f0c81;hp=27ce92c8b9b7252bd3b7cbeab310135d28bd790e;hpb=efba3a8c0e8848c4a8d662e64361546e518ac61f;p=config%2Fdotfiles.git diff --git a/shell/aliases.in b/shell/aliases.in index 27ce92c..023ed60 100644 --- a/shell/aliases.in +++ b/shell/aliases.in @@ -29,6 +29,15 @@ alias s=mpc # s for sound, m is already used alias v=vim +# Ask for confirmation before overwriting files. Especially useful when moving +# to a different directory. No alias for `rm` because I specify the files to +# remove directly, so I know what will happen. +alias mv='mv -i' +# Additionally preserve all file attributes when copying, this includes +# copying symbolic links as is without dereferencing them. +alias cp='cp -i -a' + + # Make sure there is no alias named ls as it causes problems with the # following ls function on (at least) bash 4.0.35. unalias ls 2> /dev/null