2019-10-07 19:48:17 +00:00
|
|
|
#compdef lf
|
|
|
|
|
2020-12-23 23:28:25 +00:00
|
|
|
# Autocompletion for zsh shell.
|
2019-10-07 19:48:17 +00:00
|
|
|
#
|
2020-12-23 23:28:25 +00:00
|
|
|
# You need to rename this file to _lf and add containing folder to $fpath in
|
|
|
|
# ~/.zshrc file:
|
|
|
|
#
|
|
|
|
# fpath=(/path/to/directory/containing/the/file $fpath)
|
|
|
|
# autoload -U compinit
|
|
|
|
# compinit
|
|
|
|
#
|
|
|
|
|
2019-10-07 19:48:17 +00:00
|
|
|
local arguments
|
|
|
|
|
|
|
|
arguments=(
|
2020-12-23 23:28:25 +00:00
|
|
|
'-command[command to execute on client initialization]'
|
2021-04-13 20:29:26 +00:00
|
|
|
'-config[path to the config file (instead of the usual paths)]'
|
2020-12-23 23:28:25 +00:00
|
|
|
'-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)]'
|
2021-05-19 20:38:05 +00:00
|
|
|
'-single[start a client without server]'
|
2020-12-23 23:28:25 +00:00
|
|
|
'-version[show version]'
|
2021-04-13 20:29:26 +00:00
|
|
|
'-help[show help]'
|
2020-12-23 23:28:25 +00:00
|
|
|
'*:filename:_files'
|
2019-10-07 19:48:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
_arguments -s $arguments
|