From 1e17fa1fd2f442836ccbe41b15e376fcb6159894 Mon Sep 17 00:00:00 2001 From: tbhaxor Date: Sun, 24 Feb 2019 21:24:13 +0530 Subject: [PATCH 1/3] added flutter completions --- completion/available/flutter.completion.bash | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 completion/available/flutter.completion.bash diff --git a/completion/available/flutter.completion.bash b/completion/available/flutter.completion.bash new file mode 100644 index 00000000..a274b5f3 --- /dev/null +++ b/completion/available/flutter.completion.bash @@ -0,0 +1,5 @@ +#!/usr/bin/bash + +if command -v flutter > /dev/null; then + eval "$(flutter bash-completion)" +fi \ No newline at end of file From 50aebc5c6e09d324e9a1463ba022db5e6be644a8 Mon Sep 17 00:00:00 2001 From: tbhaxor Date: Mon, 25 Feb 2019 16:44:54 +0530 Subject: [PATCH 2/3] fixed code style --- completion/available/flutter.completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/available/flutter.completion.bash b/completion/available/flutter.completion.bash index a274b5f3..6372dfe4 100644 --- a/completion/available/flutter.completion.bash +++ b/completion/available/flutter.completion.bash @@ -1,5 +1,5 @@ #!/usr/bin/bash if command -v flutter > /dev/null; then - eval "$(flutter bash-completion)" -fi \ No newline at end of file + eval "$(flutter bash-completion)" +fi From 29f79dfa75f305e3322e8f46bac1af5a8607be58 Mon Sep 17 00:00:00 2001 From: tbhaxor Date: Mon, 25 Feb 2019 16:45:52 +0530 Subject: [PATCH 3/3] :bug: fix --- completion/available/flutter.completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/available/flutter.completion.bash b/completion/available/flutter.completion.bash index 6372dfe4..62befc82 100644 --- a/completion/available/flutter.completion.bash +++ b/completion/available/flutter.completion.bash @@ -1,5 +1,5 @@ #!/usr/bin/bash -if command -v flutter > /dev/null; then +if _command_exists flutter; then eval "$(flutter bash-completion)" fi