From f05169e826d0697e074d2cd04ee9643131543b9b Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Wed, 29 Jun 2022 12:16:53 +0200 Subject: lf: show current directory in window title --- .config/lf/lfrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/lf') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index ef4527f..e7aecc6 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -17,3 +17,8 @@ cmd open ${{ *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;; esac }} + +cmd on-cd &{{ + printf "\033]0; $(pwd | sed "s|$HOME|~|") - lf\007" > /dev/tty +}} +on-cd -- cgit v1.2.3-70-g09d2