mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Merge pull request #278 from memduhcagridemir/master
Add half-life theme inspired from oh-my-zsh
This commit is contained in:
@@ -95,6 +95,10 @@
|
||||
|
||||
[](gallifrey/gallifrey-dark.png)
|
||||
|
||||
## `half-life`
|
||||
|
||||
[](half-life/half-life.theme.png)
|
||||
|
||||
## `hawaii50`
|
||||
|
||||
[](hawaii50/hawaii50-dark.png)
|
||||
|
||||
BIN
themes/half-life/half-life.theme.png
Normal file
BIN
themes/half-life/half-life.theme.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
22
themes/half-life/half-life.theme.sh
Normal file
22
themes/half-life/half-life.theme.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
OSH_THEME_GIT_PROMPT_DIRTY="✗"
|
||||
OSH_THEME_GIT_PROMPT_CLEAN="✓"
|
||||
|
||||
# Nicely formatted terminal prompt
|
||||
_omb_theme_half_way_prompt_scm() {
|
||||
local CHAR=$(scm_char)
|
||||
if [[ $CHAR != "$SCM_NONE_CHAR" ]]; then
|
||||
printf '%s' " on ${blue}$(git_current_branch)$(parse_git_dirty)${normal} "
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_command() {
|
||||
local ps_username="${purple}\u${normal}"
|
||||
local ps_path="${green}\w${normal}"
|
||||
local ps_user_mark="${orange}λ${normal}"
|
||||
|
||||
PS1="$ps_username in $ps_path$(_omb_theme_half_way_prompt_scm) $ps_user_mark "
|
||||
}
|
||||
|
||||
_omb_util_add_prompt_command prompt_command
|
||||
Reference in New Issue
Block a user