Leave a note on how to add shell completions for lfcd in ZSH

This commit is contained in:
postsolar committed 2023-12-30 18:24:36 +02:00
1 parent 488294588e
commit c28393dd43
1 file changed
+6
+6
View File
@@ -13,6 +13,12 @@
# bind '"\C-o":"lfcd\C-m"' # bash # bind '"\C-o":"lfcd\C-m"' # bash
# bindkey -s '^o' 'lfcd\n' # zsh # 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 () { lfcd () {
# `command` is needed in case `lfcd` is aliased to `lf` # `command` is needed in case `lfcd` is aliased to `lf`