commit
e06066c367
|
|
@ -43,6 +43,7 @@ themes/bobby-python
|
||||||
themes/brainy
|
themes/brainy
|
||||||
themes/brunton
|
themes/brunton
|
||||||
themes/command_duration.theme.bash
|
themes/command_duration.theme.bash
|
||||||
|
themes/easy
|
||||||
themes/modern
|
themes/modern
|
||||||
themes/purity
|
themes/purity
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
.. _easy:
|
||||||
|
|
||||||
|
Easy Theme
|
||||||
|
==========
|
||||||
|
|
||||||
|
A simple theme
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
user@hostname ~/.bash_it
|
||||||
|
[ master ✓ ] ❯
|
||||||
|
|
@ -187,6 +187,22 @@ Doubletime Multiline Python Only
|
||||||
:alt:
|
:alt:
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Easy
|
||||||
|
^^^^
|
||||||
|
|
||||||
|
|
||||||
|
.. image:: https://bash-it.github.io/bash-it/docs/images/easy-black.jpg
|
||||||
|
:target: https://bash-it.github.io/bash-it/docs/images/easy-black.jpg
|
||||||
|
:alt:
|
||||||
|
|
||||||
|
|
||||||
|
.. image:: https://bash-it.github.io/bash-it/docs/images/easy-white.jpg
|
||||||
|
:target: https://bash-it.github.io/bash-it/docs/images/easy-white.jpg
|
||||||
|
:alt:
|
||||||
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Envy
|
Envy
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
SCM_THEME_PROMPT_PREFIX="${bold_green}[ ${normal}"
|
||||||
|
SCM_THEME_PROMPT_SUFFIX="${bold_green} ] "
|
||||||
|
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
|
||||||
|
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
||||||
|
|
||||||
|
prompt_command() {
|
||||||
|
if [ "$(whoami)" = root ]; then
|
||||||
|
cursor_color="${bold_red}"
|
||||||
|
user_color="${green}"
|
||||||
|
else
|
||||||
|
cursor_color="${bold_green}"
|
||||||
|
user_color="${white}"
|
||||||
|
fi
|
||||||
|
PS1="${user_color}\u${normal}@${white}\h ${bold_black}\w\n${reset_color}$(scm_prompt_info)${cursor_color}❯ ${normal}"
|
||||||
|
}
|
||||||
|
|
||||||
|
safe_append_prompt_command prompt_command
|
||||||
Loading…
Reference in New Issue