From 794683cd66389ef79bcd024820d60c21bb31bb8d Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Tue, 4 Jun 2024 01:25:12 -0300 Subject: [PATCH] Move alias completion to nix --- completions/001_go.bash | 6 ------ completions/002_rustup.bash | 3 --- completions/999_wrapup.bash | 3 --- 3 files changed, 12 deletions(-) delete mode 100755 completions/001_go.bash delete mode 100755 completions/002_rustup.bash diff --git a/completions/001_go.bash b/completions/001_go.bash deleted file mode 100755 index 129f78c..0000000 --- a/completions/001_go.bash +++ /dev/null @@ -1,6 +0,0 @@ -if hash gocomplete 2>/dev/null; then - if GOCOMPLETE=`which gocomplete`; then - complete -C "$GOCOMPLETE" go - fi - unset GOCOMPLETE -fi diff --git a/completions/002_rustup.bash b/completions/002_rustup.bash deleted file mode 100755 index 267602c..0000000 --- a/completions/002_rustup.bash +++ /dev/null @@ -1,3 +0,0 @@ -addCompletion "$COMPLETIONS_DIR"/rustup -addCompletion "$COMPLETIONS_DIR"/cargo -updateCompletionsCommands="$updateCompletionsCommands\nif hash rustup 2>/dev/null; then rustup completions bash > $COMPLETIONS_DIR/rustup; rustup completions bash cargo > $COMPLETIONS_DIR/cargo; fi" diff --git a/completions/999_wrapup.bash b/completions/999_wrapup.bash index 0869941..ffc3ccf 100755 --- a/completions/999_wrapup.bash +++ b/completions/999_wrapup.bash @@ -2,6 +2,3 @@ if ! [ -d "$COMPLETIONS_DIR" ]; then mkdir -p "$COMPLETIONS_DIR" updateCompletions fi - -# auto complete all aliases -complete -F _complete_alias "${!BASH_ALIASES[@]}"