diff --git a/.config/lf/lfrc b/.config/lf/lfrc index e680d94bc..760facca1 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -204,7 +204,7 @@ cmd set_previewer %{{ # HACK: This is a dirty hack to have an lf terminal that I can "exit" out of into a shell cmd new_lf_term &{{ - mapcmd='map q $tmux' + mapcmd='map q $sh -c "tmux; kill $id"' previewercmd="set_previewer $(basename "$lf_previewer")" $TERMINAL -e lf -command "${previewercmd}; ${mapcmd}" }}