Skip to content

Commit

Permalink
Merge pull request #116 from lslezak/master
Browse files Browse the repository at this point in the history
Added openSUSE themes
  • Loading branch information
magicmonty committed Feb 7, 2015
2 parents c66cdfb + 0cebf28 commit 1b9e60b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions themes/Single_line_NoExitState_openSUSE.bgptheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is a theme for gitprompt.sh,
# it uses the default openSUSE bash prompt style

override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_NoExitState_openSUSE"
GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●"

GIT_PROMPT_START_USER="\u@\h:\w"
GIT_PROMPT_START_ROOT="${BoldRed}\h:\w"

GIT_PROMPT_END_USER="> "
GIT_PROMPT_END_ROOT=" # ${ResetColor}"
}

reload_git_prompt_colors "Single_line_NoExitState_openSUSE"

19 changes: 19 additions & 0 deletions themes/Single_line_openSUSE.bgptheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is a theme for gitprompt.sh,
# it uses the default openSUSE bash prompt style with exit status

override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_openSUSE"
GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●"

GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${ResetColor}\u@\h:\w"
GIT_PROMPT_START_ROOT="_LAST_COMMAND_INDICATOR_ ${BoldRed}\h:\w"

GIT_PROMPT_END_USER="${ResetColor}> "
GIT_PROMPT_END_ROOT=" # ${ResetColor}"
}

reload_git_prompt_colors "Single_line_openSUSE"

0 comments on commit 1b9e60b

Please sign in to comment.