summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-06-29 12:16:53 +0200
committerAdam <adam@adast.xyz>2022-07-03 13:40:06 +0100
commit5ce2f670c3c9c1c549710276ad8b9518d0071410 (patch)
treec03f186043122fcbe20cb4679648653756ebb781
parentd1513ace8c104f09bc9735c1c2ca50587fcf2979 (diff)
lf: show current directory in window title
-rw-r--r--.config/lf/lfrc5
1 files changed, 5 insertions, 0 deletions
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