oh-my-bash/themes
Marco A. Gallegos f53beb64b8
themes: Add a new theme developer focusing on devs (#526)
* feat(themes): added new theme
* fix(themes): screenshot updated
* fix(themes): image sizing
* chore(themes): updated theme description
* style(themes/developer): fix the indentation
* refactor(themes/developer): prefix "_omb_theme_developer_" to internal functions
* refactor(themes/developer): delimit returned values with newlines

"grep -P" is not POSIX.  Instead of using PCRE to extract the results
separated by "---", we can simply separate the results with newlines
and use standard utilities (which assumes line-oriented data) to
manipulate the data.

* refactor(themes/developer): use "_omb_util_command_exists"
* refactor(themes/developer): use awk to pick the activated conda env
* fix(themes/developer): remove meaningless forks
* fix(themes/developer): use "_omb_util_put" instead of "printf"
* style(themes/developer): fix coding styles
* chore(themes/developer): clean up codes for debugging
* fix(themes/developer): fix wronge uses of arithmetic commands
* fix(themes/developer): localize variables used in functions
* refactor(themes/developer): use "return_delimited" at the end of functions
* fix(themes/developer): fix a problem that it sometimes fails to extract CPU usage
* fix(themes/developer): avoid mixing stdout

This attempted to run the commands to extract information in parallel,
but this may result in interleaved information in some operating
system (depending on the way how the C library performs buffering and
how the syscall write(2) issued by multiple processes would interfere
with one another).

There are other parts we can optimize, so we would compensate the
overhead with the optimization of other parts.

* perf(themes/developer): load prompt information through REPLY
* perf(themes/developer): reduce the number of forks
* fix(themes/developer): suppress error message of non-existent commands
* fix(themes/developer): disable prompt element with unavailable information

---------

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2024-09-11 17:14:18 +09:00
..
90210 themes/90210..bobby: Add README.md (#559) 2024-04-28 13:11:57 +09:00
absimple style: Remove trailing whitespace and add missing final newlines 2023-04-16 17:43:09 +09:00
agnoster themes/agnoster: Correct spelling error in ansi_r comment (#515) 2024-01-09 20:23:23 +09:00
axin themes/90210..bobby: Add README.md (#559) 2024-04-28 13:11:57 +09:00
bakke themes/90210..bobby: Add README.md (#559) 2024-04-28 13:11:57 +09:00
binaryanomaly feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
bobby feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
bobby-python lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
brainy fix(themes/brainy): fix typos in completion settings 2024-07-25 15:27:35 +09:00
brunton feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
candy lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
clean lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
cooperkid feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
cupcake feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
demula feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
developer themes: Add a new theme developer focusing on devs (#526) 2024-09-11 17:14:18 +09:00
dos refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
doubletime fix(themes/doubletime): avoid using "eval echo \$\'echo ...\'" 2024-09-09 00:48:11 +09:00
doubletime_multiline themes: Use new color variables 2022-02-01 01:42:50 +09:00
doubletime_multiline_pyonly themes: Use new color variables 2022-02-01 01:42:50 +09:00
dulcie global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
duru feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
edsonarios themes: Add new theme "edsonarios" 2023-10-04 08:09:45 +09:00
emperor feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
envy lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
font themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
gallifrey feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
garo themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
half-life themes/half-life: Add python venv support (#574) 2024-06-10 20:44:11 +09:00
hawaii50 global(git): Call git for prompt through an interface function 2023-10-14 16:44:45 +09:00
ht feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
iterate lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
kitsune themes/kitsune: Fix variable name for python virtual env (#457) 2023-07-25 05:50:20 +09:00
lambda feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
luan themes/luan: Move python_venv next to ruby_env 2023-02-11 23:10:07 +09:00
mairan feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
mbriggs feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
minimal global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
minimal-gh themes: Add new theme minimal-gh (#468) 2023-08-24 17:09:32 +09:00
modern feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
modern-t feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
morris lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
n0qorg style: Remove trailing whitespace and add missing final newlines 2023-04-16 17:43:09 +09:00
nwinkler global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
nwinkler_random_colors feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
pete global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
powerbash10k feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
powerline feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
powerline-icon style(themes/powerline-*): adjust styles 2024-09-10 11:22:46 +09:00
powerline-light docs(themes/powerline-*): remove duplicate desc of powerline themes 2024-09-10 11:02:12 +09:00
powerline-multiline style(themes/powerline-*): adjust styles 2024-09-10 11:22:46 +09:00
powerline-naked style(themes/powerline-*): adjust styles 2024-09-10 11:22:46 +09:00
powerline-plain style(themes/powerline-*): adjust styles 2024-09-10 11:22:46 +09:00
powerline-wizard fix(themes/powerline-wizard): fix the permission of README.md 2024-09-10 10:32:17 +09:00
primer lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
pro lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
pure feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
purity themes/purity: add "sync" to deprecated variables 2024-02-21 19:55:14 +09:00
pzq feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
rainbowbrite global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
rana feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
rjorgenson feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
robbyrussell themes/robbyrussell: Add Python Virtual environment indicator (#536) 2024-02-28 20:48:05 +09:00
roderik themes/roderik: Fix styles 2024-02-21 19:54:07 +09:00
rr themes/rr: Refactor using OMB_PROMPT_VIRTUALENV_FORMAT 2023-02-16 14:32:59 +09:00
sexy feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
simple lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
sirup feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
slick feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
standard lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
tonka feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
tonotdo lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
tylenol themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
vscode global(git): Call git for prompt through an interface function 2023-10-14 16:44:45 +09:00
wanelo refactor(themes/wanelo): split line to construct PS1 2024-05-02 09:40:55 +09:00
zitron lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
zork feat(lib/omb-util): add "_omb_util_{print,put}" 2024-09-09 00:48:07 +09:00
THEMES.md themes: Add a new theme developer focusing on devs (#526) 2024-09-11 17:14:18 +09:00