mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
50 lines
813 B
Plaintext
Executable File
50 lines
813 B
Plaintext
Executable File
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 <enter> shell
|
|
map gr cd /
|
|
map x $$f
|
|
map X !$f
|
|
|
|
cmap <tab> cmd-menu-complete
|
|
cmap <backtab> cmd-menu-complete-back
|