From 198069fac7e7136981d06c4d9f3374e2d17c1e31 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 30 Aug 2025 11:48:45 +0200 Subject: [PATCH] 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. --- .config/zsh/zshrc.d/30-alias.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/30-alias.zsh b/.config/zsh/zshrc.d/30-alias.zsh index efbc46d..395055f 100644 --- a/.config/zsh/zshrc.d/30-alias.zsh +++ b/.config/zsh/zshrc.d/30-alias.zsh @@ -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.