allow defining a custom rename command

This commit is contained in:
Gokcehan committed 2019-07-21 20:40:57 +03:00
1 parent bfd01e5ed8
commit 9f661344ed
3 files changed
+36 -11

No files matched your search

+3 -3
View File
@@ -42,9 +42,9 @@ cmd open ${{
esac
}}
# rename current file without overwrite
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
map r push :rename<space>
# define a custom 'rename' command without prompt for overwrite
# cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
# map r push :rename<space>
# make sure trash folder exists
# %mkdir -p ~/.trash