change lf window title and prompt
This commit is contained in:
parent
8ec546dc00
commit
26cbbb5b7f
1 changed files with 5 additions and 3 deletions
|
@ -9,7 +9,7 @@ set wrapscroll
|
|||
set period 1
|
||||
set previewer ~/.config/lf/preview
|
||||
set cleaner ~/.config/lf/clean
|
||||
set promptfmt "\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m%d\033[33m%f\033[35m]\033[0m"
|
||||
# promptfmt is set in the on-cd command
|
||||
|
||||
# cmd open ${{
|
||||
# case "$(xdg-mime query filetype "$f")" in
|
||||
|
@ -135,8 +135,10 @@ cmd setbg "$1"
|
|||
cmd bulkrename $vidir
|
||||
|
||||
cmd on-cd ${{
|
||||
DIR=$(echo $PWD | sed "s|$HOME|~|")
|
||||
printf "\033]0;$TERMINAL [$DIR] \007" > /dev/tty
|
||||
DIR=$(zsh -c 'cd $PWD && source /home/luca/.config/zsh/configs/autogenerated/hashes && print -P "%3~"')
|
||||
printf "%b" "\033]0;$TERMINAL [$DIR] \007" > /dev/tty
|
||||
fmt="\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m$DIR/\033[33m%f\033[35m]\033[0m"
|
||||
lf -remote "send $id set promptfmt \"$fmt\""
|
||||
}}
|
||||
on-cd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue