From 368e86cea2568e80c18825c1f0346e1ad5cae793 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Thu, 28 Nov 2024 13:33:49 +0100 Subject: [PATCH] Fix rmf, and rmdf commands in zshrc --- home/.zshrc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index 3fc84b9..f3fa3eb 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -174,19 +174,11 @@ mvf() { } rmf() { - if [ -z "$1" ]; then - mv "$(fzf)" "$(fzfd)" - else - mv "$(fzf)" "$1" - fi + rm "$(fzf)" } rmdf() { - if [ -z "$1" ]; then - mv "$(fzf)" "$(fzfd)" - else - mv "$(fzf)" "$1" - fi + rm -rf "$(fzfd)" } # Check if tmux is already running or if the session is interactive