✨ add lf setup
This commit is contained in:
parent
ced9eb359f
commit
2bcf089e31
4 changed files with 47 additions and 0 deletions
33
.config/lf/lf.zsh
Normal file
33
.config/lf/lf.zsh
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#compdef lf
|
||||
|
||||
# Autocompletion for zsh shell.
|
||||
# src: https://github.com/gokcehan/lf/blob/f04401ba4d43f21a084e603a52cf20f80b0c437d/etc/lf.zsh
|
||||
#
|
||||
# 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]'
|
||||
'-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
|
||||
Loading…
Add table
Add a link
Reference in a new issue