diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 823527a1..c06689d2 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -8,7 +8,7 @@ set icons
 set wrapscroll
 set period 1
 set cursorpreviewfmt "\033[7;90m"
-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"
+set promptfmt # this is set in a function later
 
 # HACK: This is needed to trigger the opening function of the taolf nvim plugin
 cmd open ${{
@@ -72,11 +72,10 @@ cmd link &{{
 cmd bulkrename $vidir
 
 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\""
+    prompt="$(zsh -lc 'print -P $PS1')\033[33m%f\033[0m"
+    printf "%b" "\033]0;$(echo $prompt | sed 's/\[[0-9;]*m//g;' | sed "s/%f/$(basename $f)/g")\007" > /dev/tty
+    lf -remote "send $id set promptfmt \"$prompt\""
 }}
-on-cd
 
 cmd on-quit &printf "\033]0; $(echo $PWD | sed "s|$HOME|~|")\007" > /dev/tty
 
@@ -193,6 +192,7 @@ cmd new_lf_term &{{
     [ -n "$VIM" ] && previewer=chafa
     lf -remote "send $id set_previewer $previewer"
 }}
+on-cd
 
 # Bindings
 map <c-c>a fzfsearch