From d3413eee28f85c3b63430d35fa16baea4cd8197a Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 16 Mar 2024 15:19:49 -0400 Subject: [PATCH] fish: only source aliases if interactive --- src/.config/fish/aliases.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index 14f3835..68ef491 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -1,5 +1,6 @@ # dynamic swallow (dwm patch) function swal + return if command -v dwmswallow > /dev/null dwmswallow "$WINDOWID" $argv end @@ -7,6 +8,10 @@ end alias mpv='swal -c mpv; command mpv' +# prevent clobbering files +alias mv='mv -n' +alias cp='cp -n' + # run this before opening, e.g., mpv or zathura abbr -a -- ds swal;