Fix rmf, and rmdf commands in zshrc

This commit is contained in:
Martin Larsson 2024-11-28 13:33:49 +01:00
parent 0ac609f98e
commit 368e86cea2

View file

@ -174,19 +174,11 @@ mvf() {
} }
rmf() { rmf() {
if [ -z "$1" ]; then rm "$(fzf)"
mv "$(fzf)" "$(fzfd)"
else
mv "$(fzf)" "$1"
fi
} }
rmdf() { rmdf() {
if [ -z "$1" ]; then rm -rf "$(fzfd)"
mv "$(fzf)" "$(fzfd)"
else
mv "$(fzf)" "$1"
fi
} }
# Check if tmux is already running or if the session is interactive # Check if tmux is already running or if the session is interactive