Update after.sh

This commit is contained in:
Baltrust 2026-10-13 20:49:30 +03:00
parent dc5b1f1ef2
commit 20a78a4067

View file

@ -143,15 +143,8 @@ setopt HIST_IGNORE_SPACE
# ───────────────────────────────────── # ─────────────────────────────────────
manual() { manual() {
local pdf local pdf=$(mktemp --suffix=.pdf) || return 1
pdf=$(mktemp --suffix=.pdf) || return 1 man -Tpdf "$1" > "$pdf" 2>/dev/null || { rm -f "$pdf"; echo "No manual entry for $1"; return 1; }
if ! man -Tpdf "$1" > "$pdf" 2>/dev/null; then
rm -f "$pdf"
echo "No manual entry for $1"
return 1
fi
okular "$pdf" okular "$pdf"
rm -f "$pdf" rm -f "$pdf"
} }