1
0
Fork 0

zsh: silence error when missing prompt script

This commit is contained in:
Luca Bilke 2025-02-03 22:22:40 +01:00
parent ad95319169
commit 025b3fb543
Signed by: luca
GPG key ID: C9E851809C1A5BDE

View file

@ -69,7 +69,7 @@ function lf-wrap() {
LF_DIRFILE="$(mktemp -u)"
env lfX -last-dir-path="$LF_DIRFILE" \
-command "set promptfmt \"$(${HOME}/.local/libexec/lf_prompt)\""
-command "set promptfmt \"$(${HOME}/.local/libexec/lf_prompt 2>/dev/null)\""
dir="$(cat "$LF_DIRFILE")"
rm "$LF_DIRFILE" &>/dev/null