set shell sh set shellopts '-eu' set ifs "\n" set drawbox true set hidden set color256 set timefmt "2006-01-02 15:04:05" set dircounts set scrolloff 10 set wrapscroll true # interactive delete command with a prompt since it is easy to delete them cmd delete ${{ set -f printf "$fx\n" printf "delete?[y/n]" read ans [ $ans = "y" ] && rm -rf $fx }} # compress current file or selected files with tar and gunzip cmd tar ${{ set -f mkdir $1 cp -r $fx $1 tar czf $1.tar.gz $1 rm -rf $1 }} # compress current file or selected files with zip cmd zip ${{ set -f mkdir $1 cp -r $fx $1 zip -r $1.zip $1 rm -rf $1 }} map D delete map T tar map shell map gr cd / map x $$f map X !$f cmap cmd-menu-complete cmap cmd-menu-complete-back