95 Commits

Author SHA1 Message Date
f953288b17 themes/rjorgenson: Accept empty "OMB_THEME_{BRACKET,STRING}_COLOR" by users 2022-02-01 01:22:23 +09:00
6c0dcf3ce7 themes/rjorgenson: Use globs when checking OS
On MacOS the OSTYPE can be `darwin9.0` so we need to check for that
2022-02-01 01:22:23 +09:00
ec42a3c09c themes/rjorgenson: Remove function keyword
Made it more consistent to the rest of the functions in the file
2022-02-01 01:22:23 +09:00
ef9ca87851 themes/rjorgenson: Prefix two vars with OMB_THEME_
This will allow us to expose the variables to end user customizations
2022-02-01 01:22:23 +09:00
fa53beee56 themes/rjorgenson: Set variables as local
- set variables my_* as local
- set the variable line2 as local

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-01 01:22:23 +09:00
93286597a7 themes/rjorgenson: Refactor rjorgenson theme to reduce subshells
- Removed several unnecessary branches
- Improved indentation
- No longer pipes grep output into awk
2022-02-01 01:22:23 +09:00
ab0ca1eb15 Merge pull request #292 from akinomyoga/upgrade-in-same-shell
Upgrade/Uninstall/Install OMB in the interactive shell process
2022-01-19 09:31:05 +09:00
8c6b66ca14 themes/powerline: Avoid using non-POSIX uptime 2022-01-18 15:48:04 +09:00
1d1b160a8d themes/powerline: Make sudo checks opt-in 2022-01-18 15:48:04 +09:00
7f420263b2 themes: Make PROMPT_COMMAND usage consistent for reloading OMB 2022-01-15 19:14:30 +09:00
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +09:00
abff767533 fix: Correct executable bit in permissions 2022-01-15 15:29:41 +09:00
a4f752cd01 themes/kitsune: Fix a bug that information is not updated 2022-01-15 14:03:57 +09:00
6b2d92efbd themes/kitsune: Add a proper dependency 2022-01-15 14:03:57 +09:00
56f692daf0 themes/base: Fix a typo 2022-01-12 18:28:19 +09:00
8780308a4f themes: Fix wrong usage of command substitutions in conditions 2022-01-08 15:34:05 +09:00
85211c1f76 themes/rjorgenson: Use the POSIX command substitution 2022-01-08 15:34:05 +09:00
a085f452fb themes/agnoster: Use the POSIX command substitutions
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-08 15:34:05 +09:00
744489eb5b themes/half-way: Adjust coding styles 2021-12-30 22:01:14 +09:00
c58321b9e6 themes/half-way: Apply review comments 2021-12-30 21:55:06 +09:00
dbc3db03f3 themes: Add "half-life" theme 2021-12-30 21:54:58 +09:00
a3b8e5fdbf lib/utils: move and refactor "safe_append_prompt_command => _omb_util_append_prompt_command" 2021-12-28 09:21:17 +09:00
d59c91bc35 themes/base: Refactor prompt info for ruby envs 2021-12-28 08:53:41 +09:00
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00
1401e86e9f themes: Show the "conda" environment with "virtualenv" 2021-12-27 23:53:16 +09:00
77e5874e62 themes/base: Refactor prompt strings for python envs 2021-12-27 23:53:16 +09:00
81535a1e49 themes/cupcase: Remove dup def of "virtualenv_prompt" 2021-12-27 23:53:16 +09:00
cc2e8a87f9 themes/font: Add conda python venv prompt 2021-12-27 23:53:10 +09:00
f4a24a11de Make it possible to disable clock in font theme 2021-12-25 14:22:57 +09:00
39af832b76 Add '_' to git branch name character whitelist 2021-12-24 22:20:22 +09:00
c308e0821e themes/agnoster: Prompt broken when using pyenv (#176) (#177)
* Make sure that the output of `python --version` is always captured.
* Refactor logic to extract Python version using `awk` instead of a
  for-loop.

Fixes #176
2020-09-27 22:08:13 +07:00
4d0efc87aa themes/powerline: Fix POWERLINE_PROMPT is not an array (#37)
Authored-by: Jan Bernloehr <bosch.bernloehr@extaccount.com>
2020-06-11 15:40:27 +07:00
749823b78f themes/agnoster: Changes in prompt_virtualenv() function in order to show the python version and not the folder name. (#147) 2020-06-11 15:38:32 +07:00
8e9b7646b9 themes: Add new theme 'garo' (#133)
* Extra theme 'garo'

* theme garo: export vars
2020-06-11 14:49:11 +07:00
ec1921490f Themes: screenshots added (#116)
* [feat] THEMES.md: Add screenshots

What?:
- Add screens for all themes
- Add THEMES.md to showcase all screens

Breaking Changes? None

* fix #114

What?:
- Add screenshots to be added to wiki

Breaking Changes? None
2019-12-31 15:00:02 +07:00
429ffc1cbc oh-my-bash.sh : Fix for #70 #59 (#71)
* oh-my-bash.sh : Fix for #70

* Future proofing

* Fixed symlink for agnoster-bash.theme.sh

* Reaction on https://github.com/ohmybash/oh-my-bash/pull/71#discussion_r307617303
2019-07-31 16:13:08 +07:00
7c23eda3c2 Adding readme.md for agnoster theme (#57) 2019-05-14 12:25:47 +07:00
c35410e847 Added agnoster theme files (#54) 2019-05-09 23:26:54 +07:00
6ade77f3bb function append_prompt_override (#33)
set "function" before append_prompt_override in line 521 so that bash could known the comman
2018-08-24 10:47:25 +10:00
246d698e4c Allow overriding of prompt addition (#24)
Some environments have stringent security features that do not allow the
execution of functions inside `$PROMPT_COMMAND`, breaking every individual
theme.

We now allow the overriding of the prompt setter command to workaround
this.
2018-08-13 16:18:49 +10:00
e65c390bfa Improve oh-my-bash functionality
* Implement aliases, completion in oh-my-bash
 * Added default themes from Bash-it
 * Fixed few issues
2017-10-10 18:07:01 +07:00
ea1c9371e1 Added shebash line and fix some issues 2017-03-20 19:51:00 +07:00
b5f0dd14ca Fix powerline theme variable not match the theme's name 2017-03-19 16:26:13 +07:00
adc673b02a Initial Oh My Bash framework 2017-03-19 15:40:25 +07:00