zsh:alias: Add -a to cp

Preserve all attributes (i.e. timestamps, permissions, etc.). This also
implies `--recursive` which I probably could have added already sooner.
This commit is contained in:
2025-08-30 11:48:45 +02:00
parent 4c12418b62
commit 198069fac7

View File

@@ -183,7 +183,7 @@ fi
# Default flags
add_flags ls --color=auto --group-directories-first -p -v
add_flags grep --color=auto --exclude-dir=.git --exclude=tags
add_flags cp -i
add_flags cp -ia
add_flags mv -i
# Only add flags if rm is not aliased to a different command (e.g. trash).
# NOTE: This also works if rm is not yet aliased.