This commit is contained in:
Nikita Ivanov 2022-06-18 15:35:27 +05:00
parent 39f1c78f99
commit 53c19055b6
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
7 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,5 @@
if exists exiftool; then
exiftool "$f" || true
exiftool -- "$f" || true
else
cat "$f"
cat < "$f"
fi

View File

@ -1 +1 @@
cat "$f"
cat < "$f"

View File

@ -1 +1 @@
jq -C . "$f"
jq -C . < "$f"

View File

@ -1 +1 @@
ls --color --group-directories-first "$f"
ls --color --group-directories-first -- "$f"

View File

@ -1 +1 @@
mdcat --columns "$w" "$f"
mdcat --columns "$w" -- "$f"

View File

@ -6,9 +6,10 @@ office() {
libreoffice \
--headless \
--convert-to jpg "$f" \
--outdir "$cache_d" >/dev/null &&
mv "$cache_d/$jpg.jpg" "$cache_f"
--convert-to jpg \
--outdir "$cache_d" \
"$f" >/dev/null &&
mv -- "$cache_d/$jpg.jpg" "$cache_f"
}
convert_and_show_image office

View File

@ -1,3 +1,4 @@
source-highlight \
--tab=4 --out-format=esc \
--style=esc256.style --failsafe -i "$f"
--style=esc256.style --failsafe -i \
-- "$f"