Commit Graph

50 Commits

Author SHA1 Message Date
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 Kovacs
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 Verma
72b8e67139
feat: Add {completions,plugins}/chezmoi (#477) 2023-09-23 18:00:15 +09:00
Koichi Murase
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
e535da6865
34057730a5
4af88ccbe6
2ee1e1a174
5708327c37
90c59b4e12
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 Kofler
0c07172c02 fix: Fix quoting
Co-authored-by: Koichi Muarse <myoga.murase@gmail.com>
2023-04-16 18:23:22 +09:00
Edwin Kofler
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 Korren
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
M
b893ce6f79 Refactor "{declare -{f,F} => _omb_util_function_exists}"
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-08-23 18:09:46 +09:00
M
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 <myoga.murase@gmail.com>
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 Hedde
c106583722 completions/git: Support multiple git paths and resolve symlink
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-05 21:07:44 +09:00
Jean-Sébastien Hedde
5516f7e2ed completions/git: Return from the function instead of using a flag
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-05 13:17:39 +09:00
Jean-Sébastien Hedde
8fa9c34c43 completions/git: Use a private function and clean debug
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-05 13:17:39 +09:00
Jean-Sébastien Hedde
5ea1aa6b7e completions/git: Rely on local completion
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-05 13:17:36 +09:00
Jean-Sébastien Hedde
20fa827b89 completions/git: Move the upstream git-completion to subdir "tools" 2022-02-05 13:17:02 +09:00
Jean-Sébastien Hedde
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
Jean-Sébastien Hedde
e0abffc8af completions/makefile: Respect POSIX compatibility
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-29 02:03:30 +09:00
Jean-Sébastien Hedde
f364333dfd completions/makefile: Support GNUmakefile and makefile
Close #216
2021-12-29 02:03:30 +09:00
SOPHAL HONG
fdd28c810a
completions/minikube: Add minikube completion (#130)
Co-authored-by: sophal <hongsophal@github.com>
2020-06-11 15:22:58 +07:00
kanedafromparis
467e3cb7b9 completion: update maven completion (#58) 2019-07-26 14:32:17 +07:00
Tasos Vlachogiannis
f23792a782 Fix git commands completion (#62) 2019-06-27 18:37:10 +07:00
Toan Nguyen
53fb803740
OMB - Major Refactor (#39)
* OMB - Major Refactor

- Aliases and completions now works like plugins (need to enabled in .bashrc)
- Removed the compatible check in spectrum.sh, OMB now works with Bash v3.x like the old days.
- Removed core plugin, added those bash functions into base.sh and load during startup.
- Updated OSH template for new installations
- Added history config and few other stuff from #17

@TODO: Added a shell script to update old version of .bashrc to new one.

* Fixed ShellCheck issues

* Fixed ShellCheck issues
2019-01-23 03:05:32 -08:00