Skip to content

Commit 3980f5f

Browse files
authored
DLPX-89232 Add tab completion support for systemctl (#470)
PR URL: https://www.github.com/delphix/delphix-platform/pull/470
1 parent 3156b5f commit 3980f5f

File tree

1 file changed

+16
-0
lines changed
  • files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks

1 file changed

+16
-0
lines changed

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,3 +698,19 @@
698698
when:
699699
- variant == "internal-buildserver"
700700
- not ansible_is_chroot
701+
702+
- name: Add systemctl bash completion
703+
copy:
704+
dest: "/etc/bash_completion.d/systemctl"
705+
content: |
706+
if [[ -r /usr/share/bash-completion/completions/systemctl ]]; then
707+
. /usr/share/bash-completion/completions/systemctl && complete -F _systemctl systemctl
708+
fi
709+
710+
- name: Source bash completion
711+
blockinfile:
712+
dest: "/export/home/delphix/.bashrc"
713+
block: |
714+
. /etc/bash_completion.d/systemctl
715+
. /etc/bash_completion.d/zfs
716+
PATH=$PATH:/opt/delphix/server/bin

0 commit comments

Comments
 (0)