themes: Add new theme minimal-gh (#468)

* Add theme minimal-gh
* Add minimal-gh in THEMES.md
This commit is contained in:
Alex G'h 2023-08-24 02:09:32 -06:00 committed by GitHub
parent 57c9300c64
commit ffd1963875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -131,6 +131,10 @@
[![](minimal/minimal-dark.png)](minimal/minimal-dark.png)
## `minimal-gh`
[![](minimal-gh/minimal-gh-dark.png)](minimal-gh/minimal-gh-dark.png)
## `modern`
[![](modern/modern-dark.png)](modern/modern-dark.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,46 @@
#! bash oh-my-bash.module
#
#========================================================================================
#
# ### ### ## ## ## ## ### ### ### ## #### ## ##
# ## # # ## ## #### ## ## ## # # ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### #######
# ## ## ## ## ### ## ## ## ####### ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ###### #### ## ##
#
#========================================================================================
#
# Un tema creado por @AlexGh12 para el proyecto de @ohmybash en CDMX 🇲🇽
#
function _omb_theme_PROMPT_COMMAND() {
local TITLEBAR
case $TERM in
xterm* | screen)
TITLEBAR=$'\1\e]0;'$USER@${HOSTNAME%%.*}:${PWD/#$HOME/~}$'\e\\\2' ;;
*)
TITLEBAR= ;;
esac
local HORA=$(date +%H)
local MERIDIANO
if (( 10#$HORA > 12 )); then
MERIDIANO="pm";
else
MERIDIANO="am";
fi
PS1=$TITLEBAR"\n${_omb_prompt_gray}\T${MERIDIANO} ${_omb_prompt_green}\u ${_omb_prompt_olive}\${PWD} $(scm_prompt_info)\n${_omb_prompt_gray}\$ ${_omb_prompt_white}"
}
SCM_THEME_PROMPT_DIRTY=" ${_omb_prompt_brown}"
SCM_THEME_PROMPT_CLEAN=" ${_omb_prompt_bold_green}"
SCM_THEME_PROMPT_PREFIX="${_omb_prompt_white}- ${_omb_prompt_bold_teal}"
SCM_THEME_PROMPT_SUFFIX=""
OMB_PROMPT_VIRTUALENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_color}"
OMB_PROMPT_CONDAENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_color}"
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND