Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

themes: Add theme edsonarios #481

Merged
merged 4 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions themes/THEMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@

[![](duru/duru-dark.png)](duru/duru-dark.png)

## `edsonarios`

[![](edsonarios/edsonarios-dark.png)](edsonarios/edsonarios-dark.png)

## `emperor`

[![](emperor/emperor-dark.png)](emperor/emperor-dark.png)
Expand Down
Binary file added themes/edsonarios/edsonarios-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions themes/edsonarios/edsonarios.theme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#! bash oh-my-bash.module

# If you want the same background color that the screenshot, modify the
# background option in your terminal with the code: #333333

# For unstaged(*) and staged(+) values next to branch name in __git_ps1
GIT_PS1_SHOWDIRTYSTATE="enabled"
OMB_PROMPT_VIRTUALENV_FORMAT=' [%s]'
OMB_PROMPT_CONDAENV_FORMAT=' [%s]'

OMB_THEME_EDSONARIOS_STATUS_BAD="${_omb_prompt_bold_brown}❯_${_omb_prompt_normal} "
OMB_THEME_EDSONARIOS_STATUS_OK="${_omb_prompt_bold_green}❯_${_omb_prompt_normal} "

function _omb_theme_PROMPT_COMMAND {
if (($? == 0)); then
local ret_status=${OMB_THEME_EDSONARIOS_STATUS_OK-}
else
local ret_status=${OMB_THEME_EDSONARIOS_STATUS_BAD-}
fi

# If the current directory is the same as HOME, will just show "~/". If not,
# show the complete route unlike \w.
if [[ $PWD == "$HOME" ]]; then
local directory='\W/'
else
local directory="$PWD/"
fi

local python_venv
_omb_prompt_get_python_venv
edsonarios marked this conversation as resolved.
Show resolved Hide resolved

PS1="\n⚡ \t $_omb_prompt_bold_teal${directory}$_omb_prompt_bold_purple$python_venv$_omb_prompt_bold_green$(__git_ps1 " (%s)") \n${ret_status}"
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
16 changes: 11 additions & 5 deletions themes/purity/purity.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ GIT_THEME_PROMPT_CLEAN=" ${_omb_prompt_bold_green}✓${_omb_prompt_normal}"
GIT_THEME_PROMPT_PREFIX="${_omb_prompt_reset_color}( "
GIT_THEME_PROMPT_SUFFIX=" ${_omb_prompt_reset_color})"

STATUS_THEME_PROMPT_BAD="${_omb_prompt_bold_brown}❯${_omb_prompt_reset_color}${_omb_prompt_normal} "
STATUS_THEME_PROMPT_OK="${_omb_prompt_bold_green}❯${_omb_prompt_reset_color}${_omb_prompt_normal} "
OMB_THEME_PURITY_STATUS_BAD="${_omb_prompt_bold_brown}❯${_omb_prompt_reset_color}${_omb_prompt_normal} "
OMB_THEME_PURITY_STATUS_OK="${_omb_prompt_bold_green}❯${_omb_prompt_reset_color}${_omb_prompt_normal} "
_omb_deprecate_declare 20000 STATUS_THEME_PROMPT_BAD OMB_THEME_PURITY_STATUS_BAD
_omb_deprecate_declare 20000 STATUS_THEME_PROMPT_OK OMB_THEME_PURITY_STATUS_OK

function _omb_theme_PROMPT_COMMAND() {
local ret_status="$( [ $? -eq 0 ] && echo -e "$STATUS_THEME_PROMPT_OK" || echo -e "$STATUS_THEME_PROMPT_BAD")"
PS1="\n${_omb_prompt_navy}\w $(scm_prompt_info)\n${ret_status} "
function _omb_theme_PROMPT_COMMAND {
if (($? == 0)); then
local ret_status=${STATUS_THEME_PROMPT_OK:-${OMB_THEME_PURITY_STATUS_OK-}}
else
local ret_status=${STATUS_THEME_PROMPT_BAD:-${OMB_THEME_PURITY_STATUS_BAD-}}
fi
PS1="\n${_omb_prompt_navy}\w $(scm_prompt_info)\n${ret_status} "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
Loading