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() {
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