From c28393dd435f22903eaf06cc47a466626b2aa41b Mon Sep 17 00:00:00 2001 From: postsolar <120750161+postsolar@users.noreply.github.com> Date: Sat, 30 Dec 2023 18:24:36 +0200 Subject: [PATCH] Leave a note on how to add shell completions for `lfcd` in ZSH --- etc/lfcd.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/lfcd.sh b/etc/lfcd.sh index e35199af..55373baf 100644 --- a/etc/lfcd.sh +++ b/etc/lfcd.sh @@ -13,6 +13,12 @@ # bind '"\C-o":"lfcd\C-m"' # bash # bindkey -s '^o' 'lfcd\n' # zsh # +# If you are a ZSH user, and have installed ZSH completions for LF, +# you may also like to enable them for `lfcd` as well. +# To do so, after sourcing/defining `lfcd` function, put the following line: +# +# compdef _lf lfcd +# lfcd () { # `command` is needed in case `lfcd` is aliased to `lf`