Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/tourcoder/simple.zsh-theme

A simple theme for omyzsh
https://github.com/tourcoder/simple.zsh-theme

Last synced: about 1 month ago
JSON representation

A simple theme for omyzsh

Lists

README

        

# simple.zsh-theme
My ohmyzsh theme

#### Steps to use

- Enter folder

```
cd ~/.oh-my-zsh/themes
```

- Create a file, and its name ends with `.zsh-theme`, e.g.

```
vi simple.zsh-theme
```

- Place the follow in this file

```
# simple.zsh-theme

if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

# primary prompt
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
$FG[032]%~\
$(git_prompt_info) \
$FG[105]%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='${return_code}'
# color vars
eval my_gray='$FG[237]'
eval my_orange='$FG[214]'

# git settings
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]($FG[078]"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
```

- Run command `vi ~/.zshrc`, change the `ZSH_THEME` to `ZSH_THEME="simple"`

#### Font

- Font Family: `Source Code Pro`

- Font Size: 13

#### Screenshot

![](screenshot.jpg)

#### License

[MIT](LICENSE)