File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is an alternative approach. Single line in git repo.
2
+ # Theme optimised for Terminus and PowerLine compatible fonts.
3
+ # This theme for gitprompt.sh is optimized for the "Solarized Dark" and "Solarized Light" color schemes
4
+ # without the indicator of the last command state
5
+ # tweaked for Ubuntu terminal fonts
6
+
7
+
8
+ define_helpers() {
9
+ YELLOW=$(tput setaf 3)
10
+ PathShort="\[$YELLOW\][\A] ${Cyan}\w"
11
+ }
12
+
13
+ override_git_prompt_colors() {
14
+ YELLOW=$(tput setaf 3)
15
+ ORANGE=$(tput setaf 9)
16
+ RED=$(tput setaf 1)
17
+ MAGENTA=$(tput setaf 5)
18
+ VIOLET=$(tput setaf 13)
19
+ BLUE=$(tput setaf 4)
20
+ CYAN=$(tput setaf 6)
21
+ GREEN=$(tput setaf 2)
22
+ BOLD=$(tput bold)
23
+ RESET=$(tput sgr0)
24
+
25
+
26
+ GIT_PROMPT_THEME_NAME="Single_line_Solarized_Lamda"
27
+
28
+
29
+ GIT_PROMPT_PREFIX="[ "
30
+ GIT_PROMPT_SUFFIX=" ]"
31
+ GIT_PROMPT_SEPARATOR=" |"
32
+ GIT_PROMPT_STAGED=" ${Yellow}● ${ResetColor}"
33
+ GIT_PROMPT_CONFLICTS=" ${Red}✖ ${ResetColor}"
34
+ GIT_PROMPT_CHANGED=" ${Blue}✚ ${ResetColor}"
35
+ GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
36
+ GIT_PROMPT_STASHED=" ${BoldMagenta}⚑ ${ResetColor}"
37
+ GIT_PROMPT_CLEAN=" ${Green}✔ ${ResetColor}"
38
+
39
+ GIT_PROMPT_COMMAND_FAIL="${Red}✘"
40
+
41
+ GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${Yellow}${PathShort}${ResetColor}"
42
+ GIT_PROMPT_END_USER="\[$ORANGE\] λ ${ResetColor}"
43
+ GIT_PROMPT_END_ROOT="${BoldRed} # ${ResetColor}"
44
+
45
+ GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="✭"
46
+ }
47
+
48
+ reload_git_prompt_colors "Single_line_Solarized_Lamda"
You can’t perform that action at this time.
0 commit comments