Fix rmf, and rmdf commands in zshrc
This commit is contained in:
parent
0ac609f98e
commit
368e86cea2
1 changed files with 2 additions and 10 deletions
12
home/.zshrc
12
home/.zshrc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue