Skip to content

Commit

Permalink
Add systemctl completion
Browse files Browse the repository at this point in the history
  • Loading branch information
pcd1193182 committed Dec 6, 2023
1 parent a1b7edf commit 0119c65
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,11 @@
command: "systemctl disable {{ item }}"
with_items:
- docker.service

- name: Add systemctl bash completion
copy:
dest: "/etc/bash_completion.d/systemctl"
content: |
if [[ -r /usr/share/bash-completion/completions/systemctl ]]; then
. /usr/share/bash-completion/completions/systemctl && complete -F _systemctl systemctl sct
fi

0 comments on commit 0119c65

Please sign in to comment.