Skip to content

Commit ce17b5d

Browse files
committed
Merge pull request #16 from benjamingarcia/master
feat(theme): add gruvbox theme
2 parents 7f6bd2b + bb954c0 commit ce17b5d

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ export ALIEN_THEME="soft"
8787

8888
![soft](https://raw.githubusercontent.com/eendroroy/alien/master/screenshots/soft.png)
8989

90+
```bash
91+
export ALIEN_THEME="gruvbox"
92+
```
93+
94+
![gruvbox](https://raw.githubusercontent.com/eendroroy/alien/master/screenshots/gruvbox.png)
95+
96+
9097
**Custom Color**
9198

9299
```bash

modules/themes/gruvbox.zsh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env zsh
2+
3+
alien_theme(){
4+
[[ -z $color0 ]] && color0=66 # time bg
5+
[[ -z $color1 ]] && color1=245 # init bg
6+
[[ -z $color1r ]] && color1r=167 # init bg error
7+
[[ -z $color2 ]] && color2=239 # time fg
8+
[[ -z $color3 ]] && color3=223 # user bg
9+
[[ -z $color4 ]] && color4=66 # user fg
10+
[[ -z $color5 ]] && color5=239 # dir bg
11+
[[ -z $color6 ]] && color6=223 # dir fg
12+
[[ -z $color7 ]] && color7=142 # vcs bg
13+
[[ -z $color8 ]] && color8=${color1} # prompt fg
14+
[[ -z $color9 ]] && color9=239 # vcs fg
15+
[[ -z $color10 ]] && color10=${color7} # lr bg
16+
[[ -z $color11 ]] && color11=${color9} # lr fg
17+
[[ -z $color12 ]] && color12=${color7} # dirty copy bg
18+
[[ -z $color13 ]] && color13=${color9} # dirty copy fg
19+
[[ -z $color14 ]] && color14=${color7} # venv color
20+
21+
[[ -z "${PLIB_GIT_TRACKED_COLOR}" ]] && PLIB_GIT_TRACKED_COLOR=${color0}
22+
[[ -z "${PLIB_GIT_UNTRACKED_COLOR}" ]] && PLIB_GIT_UNTRACKED_COLOR=${color9}
23+
}

screenshots/gruvbox.png

13 KB
Loading

0 commit comments

Comments
 (0)