From cd396605dac8a4d404388e83f54ae99f45b60514 Mon Sep 17 00:00:00 2001 From: Juris Arturs Majors <32071671+JurisMajors@users.noreply.github.com> Date: Mon, 7 Oct 2019 21:48:17 +0200 Subject: [PATCH] Add automatically generated zsh completion (#239) * Add automatically generated zsh completion * Rename to lf.zsh and add simple installation instructions --- etc/lf.zsh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 etc/lf.zsh diff --git a/etc/lf.zsh b/etc/lf.zsh new file mode 100644 index 0000000..937c034 --- /dev/null +++ b/etc/lf.zsh @@ -0,0 +1,29 @@ +#compdef lf + +# For using these completions you must: +# - rename this file to _lf +# - add the containing folder to $fpath in .zshrc, like this: +# ''' +# fpath=(/path/to/folder/containing_lf $fpath) +# autoload -U compinit +# compinit +# ''' +# +# zsh completions for 'lf' +# automatically generated with http://github.com/RobSis/zsh-completion-generator +local arguments + +arguments=( + '-command[command to execute on client initialization]' + '-cpuprofile[path to the file to write the CPU profile]' + '-doc[show documentation]' + '-last-dir-path[path to the file to write the last dir on exit (to use for cd)]' + '-memprofile[path to the file to write the memory profile]' + '-remote[send remote command to server]' + '-selection-path[path to the file to write selected files on open (to use as open file dialog)]' + '-server[start server (automatic)]' + '-version[show version]' + '*:filename:_files' +) + +_arguments -s $arguments