Skip to content
Snippets Groups Projects
Commit 51cd7ff0 authored by ale's avatar ale
Browse files

Merge branch 'in-container-completion' into 'master'

docker: ship bash completion for in-container

See merge request !290
parents 344b9715 140029d3
No related branches found
No related tags found
1 merge request!290docker: ship bash completion for in-container
Pipeline #58287 passed
if [ -z "${PS1-}" ]; then
return
fi
_in_container_completion() {
local cur_word args
cur_word="${COMP_WORDS[COMP_CWORD]}"
args=$(podman ps --format '{{ .Names }}')
COMPREPLY=($(compgen -W "$args" -- "$cur_word"))
}
complete -F _in_container_completion in-container
...@@ -30,6 +30,15 @@ ...@@ -30,6 +30,15 @@
- src: "in-container.j2" - src: "in-container.j2"
dst: "/usr/local/bin/in-container" dst: "/usr/local/bin/in-container"
- name: Install docker-related files
copy:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
mode: 0644
loop:
- src: "in-container.sh"
dst: "/etc/profile.d/in-container.sh"
- name: Install docker cleanup cron job - name: Install docker cleanup cron job
copy: copy:
dest: /etc/cron.d/docker-cleanup dest: /etc/cron.d/docker-cleanup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment