From 50a9cc97b660cb20a5f6d0feeef192eee69df269 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 4 Jan 2023 14:23:33 +0000 Subject: [PATCH] Install gh zsh completions --- roles/gh/tasks/Debian.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/gh/tasks/Debian.yaml b/roles/gh/tasks/Debian.yaml index e7841b3..0411de0 100644 --- a/roles/gh/tasks/Debian.yaml +++ b/roles/gh/tasks/Debian.yaml @@ -29,3 +29,11 @@ name: gh state: latest update_cache: true + register: gh_apt + +- debug: msg={{gh_apt}} + +- name: install zsh completions + when: gh_apt.changed + become: true + shell: gh completion -s zsh > /usr/local/share/zsh/site-functions/_gh