10 Commits

Author SHA1 Message Date
96f6e00c38 completions/git: Fix search paths (fixup 70e0787, fix #415) 2023-03-13 11:20:16 +09:00
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
20acfcac1a completions/git: Use "_omb_util_glob_expand" 2023-03-13 00:10:02 +09:00
59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
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
a8971e3c7d lib/readlink: Add "_omb_util_readlink" 2022-02-05 21:08:00 +09:00
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
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
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
5ea1aa6b7e completions/git: Rely on local completion
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-05 13:17:36 +09:00