diff --git a/completions/distrobox b/completions/bash/distrobox similarity index 100% rename from completions/distrobox rename to completions/bash/distrobox diff --git a/completions/distrobox-assemble b/completions/bash/distrobox-assemble similarity index 100% rename from completions/distrobox-assemble rename to completions/bash/distrobox-assemble diff --git a/completions/distrobox-create b/completions/bash/distrobox-create similarity index 100% rename from completions/distrobox-create rename to completions/bash/distrobox-create diff --git a/completions/distrobox-enter b/completions/bash/distrobox-enter similarity index 100% rename from completions/distrobox-enter rename to completions/bash/distrobox-enter diff --git a/completions/distrobox-ephemeral b/completions/bash/distrobox-ephemeral similarity index 100% rename from completions/distrobox-ephemeral rename to completions/bash/distrobox-ephemeral diff --git a/completions/distrobox-generate-entry b/completions/bash/distrobox-generate-entry similarity index 100% rename from completions/distrobox-generate-entry rename to completions/bash/distrobox-generate-entry diff --git a/completions/distrobox-list b/completions/bash/distrobox-list similarity index 100% rename from completions/distrobox-list rename to completions/bash/distrobox-list diff --git a/completions/distrobox-rm b/completions/bash/distrobox-rm similarity index 100% rename from completions/distrobox-rm rename to completions/bash/distrobox-rm diff --git a/completions/distrobox-stop b/completions/bash/distrobox-stop similarity index 100% rename from completions/distrobox-stop rename to completions/bash/distrobox-stop diff --git a/completions/distrobox-upgrade b/completions/bash/distrobox-upgrade similarity index 100% rename from completions/distrobox-upgrade rename to completions/bash/distrobox-upgrade diff --git a/install b/install index edc2b05394..e3960bab2e 100755 --- a/install +++ b/install @@ -106,7 +106,7 @@ if [ -e "${curr_dir}/distrobox-enter" ]; then done fi if [ -e "completions" ]; then - for file in completions/*; do + for file in completions/bash/*; do install -D -m 0644 -t "${completion_dest_path}" "${file}" done fi @@ -160,8 +160,8 @@ else install -D -m 0644 -t "${man_dest_path}" "${file}" done fi - if [ -e "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')/completions/" ]; then - for file in "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')"/completions/*; do + if [ -e "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')/completions/bash/" ]; then + for file in "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')"/completions/bash/*; do install -D -m 0644 -t "${completion_dest_path}" "${file}" done fi