| 1 |
#compdef lf lfcd |
| 2 |
|
| 3 |
# Autocompletion for zsh shell. |
| 4 |
# |
| 5 |
# You need to rename this file to _lf and add containing folder to $fpath in |
| 6 |
# ~/.zshrc file: |
| 7 |
# |
| 8 |
# fpath=(/path/to/directory/containing/the/file $fpath) |
| 9 |
# autoload -U compinit |
| 10 |
# compinit |
| 11 |
# |
| 12 |
|
| 13 |
local arguments |
| 14 |
|
| 15 |
arguments=( |
| 16 |
'-command[command to execute on client initialization]' |
| 17 |
'-config[path to the config file (instead of the usual paths)]' |
| 18 |
'-cpuprofile[path to the file to write the CPU profile]' |
| 19 |
'-doc[show documentation]' |
| 20 |
'-last-dir-path[path to the file to write the last dir on exit (to use for cd)]' |
| 21 |
'-log[path to the log file to write messages]' |
| 22 |
'-memprofile[path to the file to write the memory profile]' |
| 23 |
'-print-last-dir[print the last dir to stdout on exit (to use for cd)]' |
| 24 |
'-print-selection[print the selected files to stdout on open (to use as open file dialog)]' |
| 25 |
'-remote[send remote command to server]' |
| 26 |
'-selection-path[path to the file to write selected files on open (to use as open file dialog)]' |
| 27 |
'-server[start server (automatic)]' |
| 28 |
'-single[start a client without server]' |
| 29 |
'-version[show version]' |
| 30 |
'-help[show help]' |
| 31 |
'*:filename:_files' |
| 32 |
) |
| 33 |
|
| 34 |
_arguments -s $arguments |