mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
themes: Add "half-life" theme
This commit is contained in:
committed by
Koichi Murase
parent
f647fb4c30
commit
dbc3db03f3
@@ -95,6 +95,10 @@
|
||||
|
||||
[](gallifrey/gallifrey-dark.png)
|
||||
|
||||
## `half-life`
|
||||
|
||||
[](half-life/half-life.theme.png)
|
||||
|
||||
## `hawaii50`
|
||||
|
||||
[](hawaii50/hawaii50-dark.png)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
OSH_THEME_GIT_PROMPT_DIRTY="✗"
|
||||
OSH_THEME_GIT_PROMPT_CLEAN="✓"
|
||||
|
||||
# Nicely formatted terminal prompt
|
||||
ps_scm_prompt() {
|
||||
CHAR=$(scm_char)
|
||||
if [ $CHAR = $SCM_NONE_CHAR ]
|
||||
then
|
||||
return
|
||||
else
|
||||
echo " on ${blue}$(git_current_branch)$(parse_git_dirty)${normal} "
|
||||
fi
|
||||
}
|
||||
|
||||
function prompt_command() {
|
||||
ps_username="${purple}\u${normal}"
|
||||
ps_path="${green}\w${normal}"
|
||||
ps_user_mark="${orange}λ${normal}"
|
||||
|
||||
PS1="$ps_username in $ps_path$(ps_scm_prompt) $ps_user_mark "
|
||||
}
|
||||
|
||||
|
||||
safe_append_prompt_command prompt_command
|
||||
Reference in New Issue
Block a user