commit 17481257a6a8b1dc912ea649c0376e2df181a552 parent cf0c36025e7dce00d515e9a7cd955fb7dd76a1b6 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Mon, 13 Apr 2020 22:33:36 +0200 zsh: add lf completion Former-commit-id: 39818081413ae06002885a2282ca0dbe1c874ef7 Diffstat:
A | shell/zsh-completions-mine/_lf | | | 29 | +++++++++++++++++++++++++++++ |
M | shell/zshrc | | | 2 | +- |
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/shell/zsh-completions-mine/_lf b/shell/zsh-completions-mine/_lf @@ -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 diff --git a/shell/zshrc b/shell/zshrc @@ -17,7 +17,7 @@ source_if_exists() { setopt interactivecomments # Enable extra completions -fpath=($DOTFILES/shell/zsh-completions/src $fpath) +fpath=($DOTFILES/shell/zsh-completions/src $DOTFILES/shell/zsh-completions-mine $fpath) autoload -Uz compinit && compinit source $DOTFILES/shell/oh-my-zsh-defaults/completion.zsh source $DOTFILES/shell/oh-my-zsh-defaults/directories.zsh