From e9055851f58f300d57a19ff7e23507d306ffccdd Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 30 Jun 2023 12:53:37 +0200 Subject: [PATCH] async on-cd (I am not very intelligent) --- .config/lf/lfrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index b3ca39ab9..b6c1b789b 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -11,7 +11,7 @@ set previewer ~/.config/lf/preview set cleaner ~/.config/lf/clean # set drawbox set cursorpreviewfmt "\033[7;90m" -# promptfmt is set in the on-cd command +set promptfmt "\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m%d\033[35m]\033[32m » \033[33m%f\033[0m" cmd open $set -f; rifle -c $XDG_CONFIG_HOME/lf/rifle.conf -p 0 $fx; clear @@ -96,7 +96,7 @@ cmd link %{{ cmd setbg "$1" cmd bulkrename $vidir -cmd on-cd ${{ +cmd on-cd &{{ printf "%b" "\033]0;$(zsh -c 'source $XDG_CONFIG_HOME/zsh/configs/autogenerated/hashes; print -Pn "$USER@$HOST [%3~]"') \007" > /dev/tty fmt="\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m$(zsh -c 'source $XDG_CONFIG_HOME/zsh/configs/autogenerated/hashes; print -Pn "%3~"')\033[35m]\033[32m » \033[33m%f\033[0m" lf -remote "send $id set promptfmt \"$fmt\""