Fix glab zsh completion install on Debian

This commit is contained in:
Kenneth Benzie 2024-04-20 12:59:38 +01:00
parent 056ae6e169
commit 6132cc58a6

View File

@ -62,7 +62,13 @@
state: absent
path: '{{tempdir.path}}'
- name: get zsh completions source
command: glab completion -s zsh
register: glab_zsh_completions
changed_when: false
- name: install zsh completions
when: glab_version is not defined or glab_version != latest_version
command:
glab completion -s zsh > ~/.local/share/zsh/site-functions/_glab
become: true
copy:
content: '{{glab_zsh_completions.stdout}}'
dest: /usr/local/share/zsh/site-functions/_glab