Commit Graph

375 Commits (f6c5717a7abf672e37f9367c6473d38b83fcd36f)

Author SHA1 Message Date
Ira Abramov c42e3e8b21 Removed trailing whitespaces 2020-10-29 19:57:14 +02:00
Noah Gorny 8a36f21ca1 Add _binary_exists and use in github-cli completion
gh was also used as an git alias, and caused _command_exists to not fail as expected
2020-10-21 00:14:11 +03:00
Noah Gorny c387517122
Merge pull request #1626 from NoahGorny/update-to-stable-or-unstable
bash-it update to stable or dev
2020-10-16 14:16:06 +03:00
Nils Winkler 27702f648c
Merge pull request #1672 from NoahGorny/bash-it-reset
Add bash-it restart command
2020-10-16 08:42:38 +02:00
Grzegorz Szczudlik ecef6ed008 Add Kind support 2020-10-15 10:27:18 +02:00
Noah Gorny 2fd1cd66e4 completion: Add --silent and -s completion 2020-10-13 14:42:02 +03:00
Noah Gorny 1bdcacf242 completion: Update completion for new bash-it update
Also fix the update completion test
2020-10-13 14:42:02 +03:00
Noah Gorny f4279e63c1 Add bash-it restart command
Also add completion and completion tests
2020-10-12 15:29:36 +03:00
Noah Gorny 92a1310bc2 Remove deprecated and unused gh completion/plugin 2020-10-10 02:54:58 +03:00
Noah Gorny e010512dee completion: github: Use _log_warning instead of simple echo 2020-10-10 02:41:45 +03:00
Travis Swicegood 582ea5c260 Update based on @nwinkler's feedback 2020-10-10 02:39:05 +03:00
Travis Swicegood 11819278b4 Add GitHub CLI completion 2020-10-10 02:36:17 +03:00
cornfeedhobo f40bfa80f1
system completion nitpicks
- General cleanup of system completion
- Use homebrew's completion loading script instead
- Deprecate completions covered by system
- Adjust load priority of brew to happen after system
2020-09-21 09:07:09 -05:00
Nils Winkler 230bafd0d1
Fixed OS comparison for macOS
This was always failing on macOS instead of working there...

See #1635 for the original commit that introduced this issue.
2020-08-10 09:06:36 +02:00
Kan Li 41084ee678
Fix error "bash: _git_bash_completion_found: command not found..." 2020-08-08 22:09:43 -07:00
cornfeedhobo 42e9017df3
simplify git completion to use system-provided completions only (#1635)
* simplify git completion to use system-provided completions only

* support ubuntu git completion

* only search non-system paths

* only operate on macos.

* no need to return 1 in a plugin

* make alias test happy

* make alias test happy

* make alias test happy

* pass exit code when capturing expected errors

* slightly more understandable code structure

* make better use of the new logging feature
2020-08-08 22:14:41 +02:00
cornfeedhobo e4b856b67b
use terraform to complete itself 2020-08-03 17:41:21 -05:00
cornfeedhobo 4734505af8
add logging for improperly prepared environments and better error handling. 2020-07-12 16:20:50 -05:00
KID the Euforia e9c01e1843
completion/ssh: support sftp command
Signed-off-by: KID the Euforia <kid0725+github@gmail.com>
2020-07-09 18:51:48 +09:00
Noah Gorny 1e674643b3 completion: Add bash-it doctor completion
Also fix the tests and add a new one
2020-06-23 15:12:43 +03:00
cornfeedhobo 3188f635e2
source distro provided docker completion 2020-05-18 15:01:57 -05:00
David Farrell f8a1877c72
completion/git: Updates completion script to v2.26.2 2020-04-21 11:25:37 -07:00
Uco Mesdag 862b99896d
Updated openshift completion to use _command_exists and removed duplicate oc completion 2020-04-21 15:00:14 +02:00
All Your Code 313e9bd51b
Added Minishift completion (#1566)
* Added Minishift completion

* Instead of copy pasting the output, using the output directly

* Replaced which command with _command_exists
2020-04-21 08:32:20 +02:00
All Your Code 06cc400229
Added OC completion (#1567)
* Added OC completion

* Instead of copy pasting the output, using the output directly

* Replaced which command with _command_exists
2020-04-21 08:30:26 +02:00
Nils Winkler 6b4970136b Added a check for the ng command in ng completion
See #1542, #1543
2020-04-06 16:14:27 +02:00
Gurkirat Singh 5ad244da87
Update ng.completion.bash 2020-04-02 18:59:10 +05:30
All Your Code 287d9d4b4f
Update vagrant.completion.bash
Fixed command options changes of the Vagrant command. Completion has been broken for a while, especially the snapshot options.
2020-03-22 15:12:40 +01:00
cornfeedhobo 2e4c4ad29a
enhance makefile completion - remove hash bang 2020-02-21 22:29:14 -06:00
cornfeedhobo 239f708637
enhance makefile completion - remove use of find 2020-02-21 22:27:56 -06:00
cornfeedhobo 552cd89851
enhance makefile completion - shortcircuit early when nothing is found 2020-02-21 13:09:08 -06:00
cornfeedhobo 9d97532f8e
enhance makefile completion and make shellcheck happy 2020-02-21 12:56:00 -06:00
cornfeedhobo b70c02c4ae
enhance makefile completion to support multiple files and gnumake 2020-02-21 12:16:57 -06:00
John McBride 0a0e2ff285 Revert to using env for invoking bash
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-14 17:40:14 -07:00
John McBride afae3f8d25 Shellcheck double quote env variable
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-14 14:36:03 -07:00
John McBride 6c01792cba use gocomplete tool for go tool bash completion
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-14 14:30:19 -07:00
Nils Winkler d8d6109e43
Fix macOS sed in SSH completion
See here for details: b5f666d467
2020-01-23 08:36:53 +01:00
Nils Winkler 0b4762239f
Merge pull request #1474 from damienmascre/contributing
SSH completion : corrects the inclusion file list by properly interpreting the paths s…
2020-01-16 12:55:46 +01:00
Hongyi Zhao d54577f992 touch up
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-01-09 23:41:04 +08:00
Hongyi Zhao d85a254429 Fix the completion for pip/pip3 2020-01-09 23:20:28 +08:00
Damien MASCRÉ b5f666d467 Corrects the inclusion file list by properly interpreting the paths specified in the Include directive of the ssh_config, aka paths relative to the ~/.ssh folder. 2020-01-07 13:20:01 +01:00
Nils Winkler b9af75a494
Merge pull request #1469 from hongyi-zhao/master
Fix completion/available/brew.completion.bash

Closes #1458
2019-12-30 17:11:23 +01:00
Muhammad Muhammad Ibrahim 4721cdfdac Update bundler completion from @mernen 2019-12-27 05:40:57 +02:00
Hongyi Zhao 6f2376daa2 touch up completion/available/brew.completion.bash 2019-12-19 16:53:24 +08:00
Hongyi Zhao 7c73b22e75 fix completion/available/brew.completion.bash for the git-clone based installation 2019-12-19 16:45:39 +08:00
Gurkirat Singh 00030bfed5 added laravel completions 2019-11-27 19:04:23 +05:30
wukuan405 cf86219418 updated hub completion 2019-10-28 12:26:06 +09:00
Nils Winkler b252f8ebc3
Merge pull request #1388 from leventyalcin/feature/consul_completion
tab completion for Hashicorp consul
2019-07-08 08:43:57 +02:00
Ti Leggett cf39dc4257 added slogin to list of ssh completion commands 2019-07-04 10:52:19 -05:00
Levent Yalcin 2cd06962d3
tab completion for Hashicorp consul 2019-06-14 13:57:07 +01:00
Gurkirat Singh 955a9dd86d added thanks message to original author 2019-06-03 14:06:05 +05:30
Gurkirat Singh 371c2e9834 added sqlmap completion 2019-05-31 23:30:55 +05:30
Travis Swicegood 1bdcc66d5a Rename to .completion.bash so it can be disabled correctly 2019-05-24 15:14:13 -05:00
Travis Swicegood 93905c3663 Add gcloud completion 2019-05-24 15:10:48 -05:00
Jason Al-Mansor 2c0bde3a22 fix path to use brew prefix env var 2019-04-26 11:12:53 -04:00
Jason Al-Mansor 15b3281445 adding env var for bash-completion@2 compatibility 2019-04-26 11:03:44 -04:00
trmaphi c8b4ffbac1 Update bash completion for git v2.21.0 2019-04-05 16:38:18 +07:00
Nils Winkler 15f25a88d5
Merge pull request #1349 from brianphillips/helm-completion
Add support for helm completion
2019-03-27 08:47:37 +01:00
Brian Phillips 918ccd25d6 Add support for helm completion
Signed-off-by: Brian Phillips <bpphillips@gmail.com>
2019-03-26 10:04:19 -05:00
Truong Ma Phi df011d7ab6 Update docker machine completion 2019-03-22 16:21:55 +07:00
Truong Ma Phi 4329da109e Update docker compose collection 2019-03-22 16:21:45 +07:00
Truong Ma Phi 7156011f83 Update docker completion 2019-03-22 16:21:29 +07:00
tbhaxor 93348838a1
bug fix in wpscan args 2019-03-10 08:19:14 +05:30
tbhaxor 29f79dfa75
🐛 fix 2019-02-25 16:45:52 +05:30
tbhaxor 50aebc5c6e
fixed code style 2019-02-25 16:44:54 +05:30
tbhaxor 1e17fa1fd2
added flutter completions 2019-02-24 21:24:13 +05:30
Nils Winkler 7a5b797da1
Merge pull request #1302 from tbhaxor/wpscan-completion
added wpscan completions
2019-01-07 08:31:23 +01:00
tbhaxor a636f602c8
added main option 2019-01-07 01:23:00 +05:30
tbhaxor 508f82eb95
added vuejs completions 2019-01-07 01:18:37 +05:30
tbhaxor fe8f5e42d0
added wpscan completions 2019-01-07 01:10:21 +05:30
Travis Swicegood 703105c562
Merge pull request #1230 from Bash-it/feature/add-crystal
Add Crystal auto-completion on Mac
2018-12-02 20:51:09 -06:00
Travis Swicegood 6706814dbc Adjust so this only runs when Homebrew is installed (thanks @nwinkler) 2018-12-02 20:44:00 -06:00
Ira Abramov 75564a050f Add completions for Opscode Chef's knife command 2018-11-15 10:35:17 +02:00
Septian Dwic 7661b561bf
Fix `fabric-completion.bash` to `fabric`
When a `bash-it show completion` command is executed
2018-10-26 17:33:53 +07:00
William A. O. Brown b9c34cb9c2 Remove some comments 2018-10-25 21:40:57 +01:00
William A. O. Brown 9040359f6c Add Lerna completion options 2018-10-25 21:37:35 +01:00
Kelly Stannard e69d1b82d8
further bundle exec completion
examples:
`bundle exec rsp` + TAB => `bundle exec rspec`
`bundle exec rspec --no` + TAB => `bundle exec rspec --no-color`
2018-10-03 10:02:44 -04:00
Travis Swicegood 76de592caf Add Crystal auto-completion on Mac 2018-08-30 18:43:00 -05:00
Ahmad Assaf c5e8349f69 Fixing Error when starting Terminal after installing Bash-IT 2018-08-29 15:00:46 +01:00
Rutger Lubbers ac5a8aca47
Added completion of installable versions
The versions that can be installed were not completed. The list of available versions showed the installed versions.
The function retrieves the available versions and removes the already installed versions.
2018-08-27 12:32:12 +02:00
Raphael Parree d00762d3cd added minikube completion support 2018-07-26 09:51:25 +02:00
con-f-use e23d26c8fe
Fix #1210 grep error on MacOS with ssh completion
See #1210
2018-07-18 14:52:01 +02:00
con-f-use 0936e2a029
Fix wildcards and handle includes in ssh complete
Handle includes in `.ssh/config` and fix bug that caused `Host` entries with wildcards in them to be included in the autocomplete suggestions.
2018-06-26 13:08:25 +02:00
Nils Winkler af5c215942
Merge pull request #1177 from dracorp/additional-command-reload
Additional command reload
2018-05-01 17:11:57 +02:00
Ahmed Kamal 209a55ab9f
Use -E instead of -P for OSX compatibility 2018-04-25 22:18:59 +02:00
Vangelis Tasoulas fd01635e4a
Code consistency improvements
Signed-off-by: Vangelis Tasoulas <vangelis@tasoulas.net>
2018-04-19 18:54:29 +02:00
Vangelis Tasoulas 039a677bd8
Corrected a typo
Signed-off-by: Vangelis Tasoulas <vangelis@tasoulas.net>
2018-04-19 18:50:00 +02:00
Vangelis Tasoulas 9efc944f19
The capistrano completion script should not have the executable bit set
No other script in the completion/available folder does.

Signed-off-by: Vangelis Tasoulas <vangelis@schibsted.com>
2018-04-19 18:42:13 +02:00
Vangelis Tasoulas 880ea9f07e
Added GPL2 header to the terraform bash completion script.
Signed-off-by: Vangelis Tasoulas <vangelis@schibsted.com>
2018-04-19 18:40:22 +02:00
Vangelis Tasoulas b538712dc3
Rewrote the terraform bash completion
Signed-off-by: Vangelis Tasoulas <vangelis@tasoulas.net>
2018-04-19 18:34:00 +02:00
Piotr Rogoża 0ec07293c5 Merge remote-tracking branch 'origin/master' into additional-command-reload 2018-04-18 21:58:09 +02:00
Piotr Rogoża 89d1661d23 Replaced reload section with proper function.
Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
2018-04-18 21:51:20 +02:00
Piotr Rogoża b1dbf2f7e0 Added additional parameter for bash-it: reload
Added creating an alias if command does not exist
2018-04-18 21:51:20 +02:00
Joe Leong 46c25769c7 Update pipenv completion
use `--completion` from pypa/pipenv docs instead of old `_PIPENV_COMPLETE`
2018-04-14 00:34:33 -04:00
Vladimir Bolshakov e8e9aa387b Add reference to pyinvoke original repo in completions file 2018-02-19 12:24:27 +03:00
Vladimir Bolshakov 45f79770fb Add invoke (pyinvoke.org) completions 2018-02-18 11:45:09 +03:00
Cameron Jeffries bc38f9817f Updating docker completions 2018-01-26 13:28:58 -08:00
Nils Winkler 4e730eb9a1
Merge pull request #1136 from LanikSJ/master
Update Terraform Completion
2018-01-22 08:43:22 +01:00
LanikSJ 2930506687
Update Terraform Completion 2018-01-21 11:07:48 -08:00
Ira Abramov a139f318d0 Add completions for libvirt's CLI 'virsh' 2018-01-21 17:20:25 +02:00
Robin Richtsfeld c86038d61d Fix some Bash issues 2017-12-09 15:06:22 +01:00
Bruno Meneguello 126703fb76
Fix "sdkman use" version completion
There is no more the CSV variable after __sdkman_build_version_csv
2017-11-27 15:03:17 -02:00
Eduardo Bellido Bellido 4a6db6ff83 Add travis completion
https://github.com/travis-ci/travis.rb
2017-10-31 00:48:55 +01:00
Eduardo Bellido Bellido 1ee7d9bb05 Add pew completion 2017-10-30 10:40:58 +01:00
Eduardo Bellido Bellido c851254f93 Fix typo in awless completion 2017-10-30 09:41:04 +01:00
Nils Winkler 825ada636c
Merge pull request #1071 from edubxb/docker-compose-completion
Update docker-compose completion to the latest one
2017-10-28 14:32:44 +02:00
Nils Winkler 15764f9a67
Merge pull request #1072 from edubxb/gradle-completion
Upgrade gradle completion to the official one
2017-10-28 14:32:06 +02:00
Nils Winkler f3448f0acf
Merge pull request #1073 from edubxb/awless-completion
Add awless completion support
2017-10-28 14:30:33 +02:00
Eduardo Bellido Bellido 1820a973d2 Add pipenv completion support
https://github.com/kennethreitz/pipenv
2017-10-28 12:42:50 +02:00
Eduardo Bellido Bellido da1e0dde6c Add awless completion support
https://github.com/wallix/awless
2017-10-28 12:37:41 +02:00
Eduardo Bellido Bellido 727fffb135 Upgrade gradle completion to the official one
https://github.com/gradle/gradle-completion
2017-10-28 00:02:02 +02:00
Eduardo Bellido Bellido 15e5705bf9 Update docker-compose completion to the latest one 2017-10-27 23:58:15 +02:00
knope 1b6a208b4c ssh doesn't care about case
... neither should it's autocomplete,
  please?  

  :D
2017-10-25 14:01:04 -04:00
Mike Fiedler 47041bc817
Add bash-it completion for version command
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-29 17:15:14 -04:00
Mike Fiedler 23da5508cc
Reduce subshell forks with variable
By following the established pattern in https://github.com/Bash-it/bash-it/blob/master/completion/available/system.completion.bash#L17-L22
we can reduce the amount of `fork` calls that are made.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 07:13:45 -04:00
Mike Fiedler cbe63e8871
Replace system completion with current brew file
Resolves #1046

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 06:36:30 -04:00
Nils Winkler 1a80d892ad Made sorting of completions consistent across OS 2017-09-17 21:05:59 +02:00
Nils Winkler 5c66f478dd Completed test suite for Bash-it completion 2017-09-17 21:05:58 +02:00
Nils Winkler cd578f8772 More tests for completion 2017-09-17 21:05:58 +02:00
Nils Winkler 757d2b4ed9 Removed unused variable 2017-09-17 21:05:58 +02:00
Nils Winkler c786c14859 Fixed "bash-it help aliases" completion - it will now show the available aliases 2017-09-17 21:05:58 +02:00
Nils Winkler e0dc7997c8 Fixed handling of components with dashes or dots in the name for completion 2017-09-17 21:05:58 +02:00
Nils Winkler ec327486ef Checking global directory for completions as well 2017-09-17 21:05:58 +02:00
Nils Winkler 607c9cd049 Cleaned up declarations 2017-09-17 21:05:58 +02:00
Nils Winkler 22674ce1e0 Replaced -e glob-based implementation with ls 2017-09-17 21:05:58 +02:00
Nils Winkler a925f5d58c Checking for global directory when looking for components that are not enabled 2017-09-17 21:05:58 +02:00
Nils Winkler 752d4afe41 Tabs to spaces 2017-09-17 21:05:58 +02:00
Nils Winkler 7a3603f80d Sorting compgen output so that the returned values are in ascending order 2017-09-17 21:05:58 +02:00
Nils Winkler e7298a5303 Fixed case where nothing was enabled 2017-09-17 21:05:58 +02:00
Moritz Onken dffddbb4a4 add nospace and = suffix 2017-09-15 23:42:03 -04:00
Moritz Onken e90787c78a Create export.completion.bash 2017-09-15 23:35:20 -04:00
Yushin Washio d98a0038d3 bash-it.completion suppress ls error when none found 2017-08-17 17:08:58 +05:00
Levent YALCIN a6fccf029c no need a var 2017-07-31 15:26:05 +01:00
Levent YALCIN 878180b2e2 tab completion support added for openshift 2017-07-31 15:23:34 +01:00
Nils Winkler f221f63d7d Add completion for help command, and help for migrate 2017-06-24 17:31:31 +02:00
Nils Winkler 0d9a0987d9 Fixed missing quotes around $BASH_IT variable
This should fix most issues where Bash-it is installed in a directory
containing spaces.
2017-06-24 17:31:30 +02:00
Nils Winkler c2446c2692 Added new "bash-it migrate" command that migrates components from the old syntax to the new one that uses the load priority 2017-06-24 17:31:30 +02:00
Nils Winkler 56d0f56714 Filter out items that are already enabled 2017-06-24 17:31:30 +02:00
Nils Winkler 2e0ceba776 Supporting both old and new link structure for completion 2017-06-24 17:31:30 +02:00
Carlo Dapor 8a09c5f0d5 New completion for Angular CLI. 2017-03-24 22:50:22 +01:00
Nils Winkler 3ab632aa1d Merge pull request #928 from LanikSJ/rvm-completion
Add RVM Completion
2017-03-24 09:43:47 +01:00
LanikSJ 8d329bd610
Remove the function as it's not needed now 2017-03-24 01:41:48 -07:00
LanikSJ c18d4338e6
Removing redundant lines 2017-03-24 01:36:24 -07:00
LanikSJ 4d0815329a
Adding source of RVM Completion 2017-03-23 16:10:22 -07:00
LanikSJ 5cd496813e
Adding RVM Completion 2017-03-23 15:57:27 -07:00
con-f-use 43a63965ee Alias and complete common misspellings of bash-it 2017-03-17 20:29:02 +01:00
LanikSJ 7d11a9d935
Adding pip3 completion 2017-03-06 16:04:42 -08:00
Nils Winkler 734ab9729f Merge pull request #878 from ierenstein/vault-update
Adding new updates for vault completions
2017-01-03 08:20:34 +01:00
Ilan Erenstein 0a84ca584e Adding new updates for vault completions 2017-01-02 14:41:35 -08:00
MunifTanjim f772ebef4a add completion for composer 2016-12-25 13:15:50 +06:00