summaryrefslogtreecommitdiff
path: root/_lf
diff options
context:
space:
mode:
Diffstat (limited to '_lf')
-rw-r--r--_lf34
1 files changed, 34 insertions, 0 deletions
diff --git a/_lf b/_lf
new file mode 100644
index 0000000..9634b60
--- /dev/null
+++ b/_lf
@@ -0,0 +1,34 @@
+#compdef lf lfcd
+
+# Autocompletion for zsh shell.
+#
+# 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
+#
+
+local arguments
+
+arguments=(
+ '-command[command to execute on client initialization]'
+ '-config[path to the config file (instead of the usual paths)]'
+ '-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)]'
+ '-log[path to the log file to write messages]'
+ '-memprofile[path to the file to write the memory profile]'
+ '-print-last-dir[print the last dir to stdout on exit (to use for cd)]'
+ '-print-selection[print the selected files to stdout on open (to use as open file dialog)]'
+ '-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)]'
+ '-single[start a client without server]'
+ '-version[show version]'
+ '-help[show help]'
+ '*:filename:_files'
+)
+
+_arguments -s $arguments