mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 07:19:42 -05:00
Added zsh completions
This commit is contained in:
parent
d03ffc228c
commit
206d698b87
24
share/linux/completions/zsh/_keepassxc
Normal file
24
share/linux/completions/zsh/_keepassxc
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#compdef keepassxc
|
||||||
|
|
||||||
|
_arguments -s \
|
||||||
|
'--help[Displays help on commandline options]' \
|
||||||
|
'--help-all[Displays help including Qt specific options]' \
|
||||||
|
'--version[Displays version information]' \
|
||||||
|
'--config[Specify path to a custom config file]:config:_files' \
|
||||||
|
'--localconfig[Specify path to a custom local config file]:localconfig:_files' \
|
||||||
|
'--lock[Lock all open databases]' \
|
||||||
|
'--keyfile[Specify the key file of the database]:keyfile:_files' \
|
||||||
|
'--pw-stdin[Read password of the database from stdin]' \
|
||||||
|
'--debug-info[Displays debugging information]' \
|
||||||
|
'--allow-screencapture[Allow screenshots and app recording (Windows/macOS)]' \
|
||||||
|
'--qmljsdebugger[Activate the QML/JS debugger with a specified port]:port:_values "port" "block"' \
|
||||||
|
'--platform[QPA plugin, see QGuiApplication documentation]:platformName:options' \
|
||||||
|
'--platformpluginpath[Path to the platform plugins]:path:_files' \
|
||||||
|
'--platformtheme[Specify the platform theme]:theme' \
|
||||||
|
'--plugin[Load additional plugin, can be specified multiple times]:plugin' \
|
||||||
|
'--qwindowgeometry[Specify window geometry for the main window]:geometry' \
|
||||||
|
'--qwindowicon[Default window icon]:icon:_files' \
|
||||||
|
'--qwindowtitle[Title of the first window]:title' \
|
||||||
|
'--reverse[Sets the application layout direction to Qt::RightToLeft (debugging helper)]' \
|
||||||
|
'--session[Restores the application from an earlier session]:session' \
|
||||||
|
'*:filename(s):_files -g "*.kdbx"'
|
17
share/linux/completions/zsh/install.txt
Normal file
17
share/linux/completions/zsh/install.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Quick Guide: Installing Zsh Completion Files
|
||||||
|
|
||||||
|
1. Place completion files in one of these locations:
|
||||||
|
- /usr/local/share/zsh/site-functions/
|
||||||
|
- /usr/share/zsh/site-functions/
|
||||||
|
- ~/.zsh/completion/
|
||||||
|
|
||||||
|
2. To use a custom directory (e.g., ~/my_custom_completions) for completions:
|
||||||
|
- Add to ~/.zshrc: fpath=(~/my_custom_completions $fpath)
|
||||||
|
|
||||||
|
3. Ensure Zsh loads and uses your completions:
|
||||||
|
- Add to ~/.zshrc: autoload -U compinit && compinit
|
||||||
|
|
||||||
|
4. Apply changes:
|
||||||
|
- Run: source ~/.zshrc or restart terminal
|
||||||
|
|
||||||
|
Note: Check your completion files are chmod 644
|
Loading…
Reference in New Issue
Block a user