mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Minor
This commit is contained in:
parent
39f1c78f99
commit
53c19055b6
@ -1,5 +1,5 @@
|
|||||||
if exists exiftool; then
|
if exists exiftool; then
|
||||||
exiftool "$f" || true
|
exiftool -- "$f" || true
|
||||||
else
|
else
|
||||||
cat "$f"
|
cat < "$f"
|
||||||
fi
|
fi
|
||||||
|
@ -1 +1 @@
|
|||||||
cat "$f"
|
cat < "$f"
|
||||||
|
@ -1 +1 @@
|
|||||||
jq -C . "$f"
|
jq -C . < "$f"
|
||||||
|
@ -1 +1 @@
|
|||||||
ls --color --group-directories-first "$f"
|
ls --color --group-directories-first -- "$f"
|
||||||
|
@ -1 +1 @@
|
|||||||
mdcat --columns "$w" "$f"
|
mdcat --columns "$w" -- "$f"
|
||||||
|
11
prev/odt.sh
11
prev/odt.sh
@ -4,11 +4,12 @@ office() {
|
|||||||
# File produced by libreoffice
|
# File produced by libreoffice
|
||||||
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
||||||
|
|
||||||
libreoffice \
|
libreoffice \
|
||||||
--headless \
|
--headless \
|
||||||
--convert-to jpg "$f" \
|
--convert-to jpg \
|
||||||
--outdir "$cache_d" >/dev/null &&
|
--outdir "$cache_d" \
|
||||||
mv "$cache_d/$jpg.jpg" "$cache_f"
|
"$f" >/dev/null &&
|
||||||
|
mv -- "$cache_d/$jpg.jpg" "$cache_f"
|
||||||
}
|
}
|
||||||
|
|
||||||
convert_and_show_image office
|
convert_and_show_image office
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
source-highlight \
|
source-highlight \
|
||||||
--tab=4 --out-format=esc \
|
--tab=4 --out-format=esc \
|
||||||
--style=esc256.style --failsafe -i "$f"
|
--style=esc256.style --failsafe -i \
|
||||||
|
-- "$f"
|
||||||
|
Loading…
Reference in New Issue
Block a user