diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-29 12:16:53 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-29 12:16:53 +0200 |
commit | f05169e826d0697e074d2cd04ee9643131543b9b (patch) | |
tree | 9e5e75e52f265571d7d83f4d5c2c8193e9aa8217 /.config/lf | |
parent | 236a388367aa9d5029b1de71fcbb365108504c9c (diff) |
lf: show current directory in window title
Diffstat (limited to '.config/lf')
-rw-r--r-- | .config/lf/lfrc | 5 |
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 |