diff --git a/CHANGES.md b/CHANGES.md index 52674be..c89b718 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +## Unreleased +- Remove bash completions opam install. Moved to debian package. + ## 0.1.4 (2024-08-26) - Add bash completions on install diff --git a/Makefile b/Makefile index cd1df91..04b25d2 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,3 @@ clean: .PHONY: top top: dune utop . - -.PHONY: install_bash_completions -install_bash_completions: - ./install-bash-completions.sh diff --git a/install-bash-completions.sh b/install-bash-completions.sh deleted file mode 100755 index 70e4318..0000000 --- a/install-bash-completions.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Define variables -completion_dir="$HOME/.local/share/bash-completion" -completion_file="passage-completion.sh" -completion_path="$completion_dir/$completion_file" -bashrc="$HOME/.bashrc" -source_line="source $completion_path" - -# Check if the ~/.local/share/bash-completion directory exists, create it if it doesn't -if [ ! -d "$completion_dir" ]; then - mkdir -p "$completion_dir" -fi - -# Always copy the file, even if it already exists. This will update the completions -cp -f "$completion_file" "$completion_path" - -# Check if the completions are already sourced in the ~/.bashrc file, inform on how to add completions if not -if ! grep -Fq "$source_line" "$bashrc"; then - echo -e "Installed bash completions script for passage. To have them working, update the $bashrc file to source the completions: \n" - echo "echo \"$source_line\" >> ~/.bashrc" -fi diff --git a/passage.opam b/passage.opam index 569e359..4e881a2 100644 --- a/passage.opam +++ b/passage.opam @@ -42,7 +42,6 @@ build: [ ] ] dev-repo: "git+https://github.com/ahrefs/passage.git" -install: [make "install_bash_completions"] x-ci-accept-failures: [ "alpine-3.20" "archlinux" diff --git a/passage.opam.template b/passage.opam.template index bde22ac..a1604e5 100644 --- a/passage.opam.template +++ b/passage.opam.template @@ -1,4 +1,3 @@ -install: [make "install_bash_completions"] x-ci-accept-failures: [ "alpine-3.20" "archlinux"