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
- Host: GitHub
- URL: https://github.com/tourcoder/simple.zsh-theme
- Owner: tourcoder
- License: mit
- Created: 2021-04-01T23:50:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T08:25:12.000Z (over 1 year ago)
- Last Synced: 2024-01-27T12:43:15.150Z (4 months ago)
- Homepage:
- Size: 231 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - simple (tourcoder) - Minimalist prompt, includes `git` status decorations. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - simple (tourcoder) - Minimalist prompt, includes `git` status decorations. (Themes / ZSH on Windows)
- awesome-zsh-plugins - simple (tourcoder) - Minimalist prompt, includes `git` status decorations. (Themes / ZSH on Windows)
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-themeif [ $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)