From 469ed15f492c39b391b6e6dde020be70c80819e1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 27 Nov 2024 19:50:00 +0200 Subject: fix(bash): Make cp preserve timestamps --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 3a99ecc..9f749b3 100644 --- a/.bashrc +++ b/.bashrc @@ -44,6 +44,7 @@ PS_BG=0 hc_mode && PS_FG=223 || PS_FG=7 hc_mode && PS_USER_BG=66 || PS_USER_BG=4 + # Thanks https://github.com/NixOS/nix/issues/9174#issuecomment-2054057401 [ -n "$IN_NIX_SHELL" -o -n "$NIX_GCROOT" ] && { hc_mode && PS_USER_BG=67 || PS_USER_BG=6; } @@ -247,6 +248,10 @@ bind '"\C-l":clear-screen' +cp() { + command cp -p $@ +} + if [ -n "$ZSHRC_FUNTOO" ] then pre-sync() { -- cgit v1.2.3