56 Commits
Author SHA1 Message Date
Koichi Murase c2ca9be018 style(completions/ssh): clean up
* style(completions/ssh): normalize quoting
2024-05-09 10:51:26 +09:00
Koichi Murase b788bff0e7 refactor(completions/ssh): use tilde expansions 2024-05-09 10:50:00 +09:00
02a5acc390 fix(completions/ssh): use "_omb_util_{split,expand_glob}" and add refactoring and performance improvements
* refactor(completions/ssh): move declaration of local variables
* perf(completions/ssh): include the for-loop inside the if-statement of ~/.ssh/config
* refactor(completions/ssh): use glob matching
* perf(completions/ssh): read config files in a single grep&awk
* perf(completions/ssh): match ^Host by awk to reduce use of grep
* fix(completions/ssh): use "_omb_util_{split,expand_glob}" for safer expansions
* refactor(completions/ssh): rename local variables
* refactor(completions/ssh): perform pathname expansion at once
* fix(completions/ssh): correct to array var in relative or absolute transform loop

Co-authored-by: Stéphane Juventy <[email protected]>
Co-authored-by: me <[email protected]>
2024-05-09 10:49:22 +09:00
meandKoichi Murase d9711d8637 feat(completions/ssh): support globbing Include files and correct typo
Co-authored-by: Koichi Murase <[email protected]>
2024-05-09 10:47:29 +09:00
meandKoichi Murase 084a3026b1 fix(completions/ssh): detect Include option in ~/.ssh/config and parse content files for completion 2024-05-09 10:40:32 +09:00
meandKoichi Murase b63339088f feat(completions/ssh): add support for ssh completion using files in .ssh/config.d too 2024-05-09 10:40:32 +09:00
Koichi Murase 767238b86f completion/docker{,-compose}: Search completion in the system first 2024-02-14 22:37:57 +09:00
Koichi Murase 065071b598 completions/fallback: Adjust docker completions 2024-02-11 11:22:57 +09:00
Koichi Murase f4e6a26884 completions: Add docker completion files from the upstream 2024-02-11 11:10:44 +09:00
Koichi Murase c93f897794 global(git): Call git for prompt through an interface function 2023-10-14 16:44:45 +09:00
Koichi Murase 3da4bf6431 completions/{ssh,rake,capistrano}: Do not rewrite COMP_WORDBREAKS
Fix https://github.com/ohmybash/oh-my-bash/issues/471
2023-10-01 04:51:02 +09:00
Koichi Murase cd8b4d2885 completions/{cap,homesick,rake,sdkman,ssh}: Fix coding styles 2023-10-01 04:45:45 +09:00
Koichi Murase e6572f4b85 completions/{cap,homesick,rake,sdkman,ssh}: Change indentation and whitespaces 2023-10-01 03:58:52 +09:00
Koichi Murase 09ffba8f9a completions/sdkman: Add a missing function 2023-10-01 03:58:52 +09:00
Koichi Murase 6fc90b21e8 completions/{cap,homesick,rake,sdkman,ssh}: Rename completion functions 2023-10-01 03:58:34 +09:00
Richard KovacsandGitHub 8e5e43e401 completions/rake: List all tasks (#478)
My rake (13.0.6) generates empty list for completition without the flag `--all`
2023-09-23 18:05:17 +09:00
Shubham VermaandGitHub 72b8e67139 feat: Add {completions,plugins}/chezmoi (#477) 2023-09-23 18:00:15 +09:00
Koichi MuraseandGitHub dd7807fcd2 Merge pull request #432 from fox-forks/quoting
fix: Quoting
2023-05-13 23:42:32 -07:00
Koichi Murase 2960ba971f fix(completions/django): Apply upstream changes
https://github.com/django/django/commit/e535da6865f0e02f0b593b52ed2e040b24a886d6
https://github.com/django/django/commit/34057730a55efe31431070c529031ee5a6f7f47b
https://github.com/django/django/commit/4af88ccbe68d6a2a6df428f569deb1f50d826cc7
https://github.com/django/django/commit/2ee1e1a1744c4d0679058124eb7ceba78a0a5a84
https://github.com/django/django/commit/5708327c3769262b845730996ca2784245ada4d1
https://github.com/django/django/commit/90c59b4e12e6ff41407694a460f5f30c4688dbfd
2023-04-16 18:24:07 +09:00
Koichi Murase 3a5b36d614 fix(completions/django): Check Existence of binary 2023-04-16 18:24:00 +09:00
Koichi Murase 7965543018 style(completions/django): Fix style 2023-04-16 18:23:25 +09:00
Edwin KoflerandKoichi Murase 0c07172c02 fix: Fix quoting
Co-authored-by: Koichi Muarse <[email protected]>
2023-04-16 18:23:22 +09:00
Edwin KoflerandKoichi Murase 5cd1f0eb16 style: Remove trailing whitespace and add missing final newlines 2023-04-16 17:43:09 +09:00
Koichi Murase 897876eae1 global: Use "command" to run "git" and "svn" 2023-04-05 10:35:11 +09:00
Koichi Murase 96f6e00c38 completions/git: Fix search paths (fixup 70e0787, fix #415) 2023-03-13 11:20:16 +09:00
Koichi Murase 70e0787510 completions/git: Search upstream git-completion files in more paths (Fix #415)
https://github.com/ohmybash/oh-my-bash/issues/415
2023-03-13 00:10:07 +09:00
Koichi Murase 20acfcac1a completions/git: Use "_omb_util_glob_expand" 2023-03-13 00:10:02 +09:00
Barak KorrenandGitHub 81f3983c1c completions: Add completion files for OpenShift/K8s tools (#404)
Including: crc, oc, tkn, helm
2023-02-25 20:06:00 +09:00
Koichi Murase 59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
Koichi Murase 20cbf8d226 lib/grep, etc: avoid obsolete egrep/fgrep
https://github.com/Bash-it/bash-it/issues/2163
2022-09-29 18:25:11 +09:00
Koichi Murase 81e2726867 completions/conda: check also "register-python-argcomplete{3,2}" 2022-09-27 10:33:29 +09:00
Koichi Murase 49c66cf04a completions/*: Fix quoting around _omb_util_function_exists 2022-08-23 18:10:01 +09:00
Koichi Murase e0a4ada275 completions/conda: Fix a discarded warning message 2022-08-23 18:10:01 +09:00
Koichi Murase 2202aeeb04 Refactor "{type => _omb_util_command_exists}" 2022-08-23 18:09:50 +09:00
MandKoichi Murase b893ce6f79 Refactor "{declare -{f,F} => _omb_util_function_exists}"
Co-authored-by: Koichi Murase <[email protected]>
2022-08-23 18:09:46 +09:00
MandKoichi Murase 4fb778c405 Refactor "{{which,command -v} => _omb_util_{binary,command}_exists}"
`which` has been deprecated in Debian (at least, the rolling release
installed on chromebooks via Linux Containers)

https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1000974461

Co-authored-by: Koichi Murase <[email protected]>
2022-08-23 18:09:16 +09:00
Koichi Murase c6fb27acb9 completions/git: Refactor using brace expansions, etc.
- Use brace expansions to generate prefixed paths
- Check if the completion file is non-empty
- Specify explicit exit value to "return" for trap handlers
- Clean up the initialization function after initialization
2022-02-05 21:12:44 +09:00
Koichi Murase a8971e3c7d lib/readlink: Add "_omb_util_readlink" 2022-02-05 21:08:00 +09:00
Jean-Sébastien HeddeandKoichi Murase c106583722 completions/git: Support multiple git paths and resolve symlink
Co-authored-by: Koichi Murase <[email protected]>
2022-02-05 21:07:44 +09:00
Jean-Sébastien HeddeandKoichi Murase 5516f7e2ed completions/git: Return from the function instead of using a flag
Co-authored-by: Koichi Murase <[email protected]>
2022-02-05 13:17:39 +09:00
Jean-Sébastien HeddeandKoichi Murase 8fa9c34c43 completions/git: Use a private function and clean debug
Co-authored-by: Koichi Murase <[email protected]>
2022-02-05 13:17:39 +09:00
Jean-Sébastien HeddeandKoichi Murase 5ea1aa6b7e completions/git: Rely on local completion
Co-authored-by: Koichi Murase <[email protected]>
2022-02-05 13:17:36 +09:00
Jean-Sébastien HeddeandKoichi Murase 20fa827b89 completions/git: Move the upstream git-completion to subdir "tools" 2022-02-05 13:17:02 +09:00
Jean-Sébastien HeddeandKoichi Murase 524708823f completions/git: Bump to v2.34.1
wget https://raw.githubusercontent.com/git/git/v2.34.1/contrib/completion/git-completion.bash --output-document=completions/git.completion.sh
2022-02-05 13:16:35 +09:00
Koichi Murase c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
Koichi Murase 3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +09:00
Koichi Murase abff767533 fix: Correct executable bit in permissions 2022-01-15 15:29:41 +09:00
Koichi Murase 2027dd42a4 completions/salt: Fix quoting for "compgen -W" and others 2022-01-08 15:34:05 +09:00
Koichi Murase eaa147afa6 completions/brew: Protect against pathname expansions and refactor 2022-01-08 15:34:05 +09:00
Koichi Murase 6d8896c4dc completions/makefile: Adjust quoting 2021-12-29 02:03:30 +09:00