Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# set previewer ~/.config/lf/pv_sandbox.sh
|
||||
# map i $~/.config/lf/pv_sandbox.sh $f | less -R
|
||||
|
||||
set preview false
|
||||
set ratios 1
|
||||
set hidden true
|
||||
set info size:time
|
||||
set promptfmt "\033[34;1m%d\033[0m"
|
||||
set incsearch true
|
||||
set incfilter true
|
||||
set period 1
|
||||
|
||||
# map f filter
|
||||
# map j updir
|
||||
# map k down
|
||||
# map l up
|
||||
# map ; open
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
read -p "Path: " path
|
||||
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case "$1" in
|
||||
*.tar*) tar tf "$1";;
|
||||
*.zip) unzip -l "$1";;
|
||||
*.rar) unrar l "$1";;
|
||||
*.7z) 7z l "$1";;
|
||||
*.pdf) pdftotext "$1" -;;
|
||||
*) highlight -O ansi "$1";;
|
||||
esac
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin /usr/bin \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--ro-bind /etc /etc \
|
||||
--ro-bind ~/.config ~/.config \
|
||||
--ro-bind ~/.cache ~/.cache \
|
||||
--ro-bind "$PWD" "$PWD" \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
sh ~/.config/lf/pv.sh "$@"
|
||||
)
|
||||
Reference in New Issue
Block a user