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() {
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue