18 Commits

Author SHA1 Message Date
c93f897794 global(git): Call git for prompt through an interface function 2023-10-14 16:44:45 +09:00
117e203d38 Add variable to disable consideration repos with untracked files as dirty (#444)
Add `SCM_GIT_DISABLE_UNTRACKED_DIRTY="true"` setting for
`lib/omb-prompt-base.sh`.

Add this variable as well as `SCM_GIT_IGNORE_UNTRACKED` into the
`.bashrc` template.
2023-06-09 06:17:17 +09:00
e91797d914 omb-prompt-base: do not attempt to process git vars outside a git tree (#443)
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-05-24 06:35:31 +09:00
0c07172c02 fix: Fix quoting
Co-authored-by: Koichi Muarse <myoga.murase@gmail.com>
2023-04-16 18:23:22 +09:00
1453db64c8 global: Use "command" to run "hg" 2023-04-05 10:35:13 +09:00
897876eae1 global: Use "command" to run "git" and "svn" 2023-04-05 10:35:11 +09:00
d3e6411f54 lib/omb-prompt-base: Use "command" to run git and svn everywhere
This was largely done correctly, but several invocations of “git” were not
done with “command”. This means that they could pick up aliases for git,
such as “hub” or “lab”, which would still work, but (especially with “lab”)
make things really slow.
2023-04-05 10:30:39 +09:00
3d14c374b9 omb-prompt-base: Add "." to git branch whitelist (#420)
* omb-prompt-base: Add "." to git branch whitelist

Add "." to git branch character whitelist to fix branches
like v6.0 or 5.4.2, as examples.

* Update lib/omb-prompt-base.sh

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-04 20:12:42 +09:00
1fdb9d035c lib/omb-prompt-base: Fix _Omb_prompt_get_condaenv 2023-02-20 22:40:07 +09:00
55a31c6b96 themes/sexy: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 17:02:34 +09:00
7a54475d48 themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
e3ecc9738c themes/luan: Define python venv as optional
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-11 23:06:43 +09:00
ea20d4cd81 lib/omb-prompt-base: Fix unbound variable error
The variable `git_status_flags` was not declared in the function
`git_prompt_vars`, so if `set -u` was set in bashrc, it would give
unbound variable error constantly with `set -u`.

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-09-29 18:12:22 +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
827277253a lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
7ed389eafd themes: Use new color variables 2022-02-01 01:42:50 +09:00
d0e61d2261 lib/omb-prompt-*: Adjust conflicts and dependencies 2022-02-01 01:30:06 +09:00
a0db119be6 themes: Move "themes/{colours,base}.theme.sh => lib/omp-prompt-{colors,base}.sh" 2022-02-01 01:30:06 +09:00