lf: prevent flashing a missing prompt
This commit is contained in:
parent
c4fc6cfb7d
commit
2131a2bd3c
|
@ -66,7 +66,8 @@ function reset_beam() { echo -ne '\e[5 q' }
|
|||
# Use lf to switch directories and bind it to ctrl-o
|
||||
function lfwrap () {
|
||||
LF_DIRFILE="/tmp/lfdir.$(uuidgen)"
|
||||
lf -last-dir-path="$LF_DIRFILE"
|
||||
lf -last-dir-path="$LF_DIRFILE" \
|
||||
-command "set promptfmt \"$(zsh -c 'source $ZDOTDIR/configs/shared; print -P $LF_PROMPT')\""
|
||||
dir="$(cat "$LF_DIRFILE")"
|
||||
\rm "$LF_DIRFILE"
|
||||
if [ -d "$dir" ]; then
|
||||
|
|
Loading…
Reference in New Issue