[ZSH] Gate safe wrappers behind shared config

This commit is contained in:
Fabian Ising
2026-07-10 15:08:57 +02:00
parent 3d24d4aad5
commit 299bdcc3f2
+2
View File
@@ -134,9 +134,11 @@ export LIBVIRT_DEFAULT_URI="qemu:///system"
alias ls="ls --color=always" alias ls="ls --color=always"
if [ "$shared_config" -eq 0 ]; then
# Use safecp/safemv from the tools-repo when available # Use safecp/safemv from the tools-repo when available
(( $+commands[safecp] )) && alias cp=safecp (( $+commands[safecp] )) && alias cp=safecp
(( $+commands[safemv] )) && alias mv=safemv (( $+commands[safemv] )) && alias mv=safemv
fi
delzip() { delzip() {
unzip -Z -1 "$@" | xargs -I{} rm -rf {} unzip -Z -1 "$@" | xargs -I{} rm -rf {}