1
0
Fork 0

async on-cd (I am not very intelligent)

This commit is contained in:
Luca Bilke 2023-06-30 12:53:37 +02:00
parent 95676238f8
commit e9055851f5
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ set previewer ~/.config/lf/preview
set cleaner ~/.config/lf/clean set cleaner ~/.config/lf/clean
# set drawbox # set drawbox
set cursorpreviewfmt "\033[7;90m" 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 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 setbg "$1"
cmd bulkrename $vidir 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 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" 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\"" lf -remote "send $id set promptfmt \"$fmt\""