mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] Generate Bitwarden CLI completions.
This commit is contained in:
parent
e23fd6d569
commit
f8525abd96
1 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,16 @@ _plugin project 'https://git.sr.ht/~keanucode/scripts/blob/master/project/projec
|
|||
unset gh_comp_path
|
||||
fi; unset gh_bin
|
||||
|
||||
if bw_bin="$(command_locate bw)" && [[ -n "$bw_bin" ]]; then
|
||||
bw_comp_path="${ZSH_CACHE_DIR}/site-functions/_bw"
|
||||
if [[ "$bw_bin" -nt "$bw_comp_path" || ! -s "$bw_comp_path" ]]; then
|
||||
_perf_timer_start "generate bw completions"
|
||||
"$bw_bin" completion --shell zsh >| "$bw_comp_path"
|
||||
_perf_timer_stop "generate bw completions"
|
||||
fi
|
||||
unset bw_comp_path
|
||||
fi; unset bw_bin
|
||||
|
||||
_plugin nim-compl 'https://raw.githubusercontent.com/nim-lang/Nim/devel/tools/nim.zsh-completion' from=url \
|
||||
after_load='plugin-cfg-path fpath prepend ""'
|
||||
|
||||
|
|
Loading…
Reference in a new issue