mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
update README.md
This commit is contained in:
parent
ea038c67a0
commit
61b8bf9803
3 changed files with 53 additions and 37 deletions
90
README.md
90
README.md
|
|
@ -1,70 +1,86 @@
|
||||||
# ohmyzsh-theme-passion
|
# simplerich-zsh-theme
|
||||||
|
|
||||||
## Introduction
|
## Overview
|
||||||
|
|
||||||
An oh-my-zsh theme;
|
An oh-my-zsh theme;
|
||||||

|

|
||||||
|
|
||||||
### Feature
|
### Feature
|
||||||
|
|
||||||
* real time prompt;
|
- Real Time Prompt
|
||||||
* command running time cost prompt;
|
- Displays Command Running Time
|
||||||
* command running error hint;
|
- Command Execution Error Hint
|
||||||
* git status prompt;
|
- Rich Git Status
|
||||||
|
|
||||||
## Usage
|
## Install
|
||||||
|
|
||||||
### Basic Zsh Theme
|
### Basic Install
|
||||||
|
|
||||||
#### Install
|
1. Clone Repository:
|
||||||
|
|
||||||
1. clone repo: ```git clone https://github.com/ChesterYue/ohmyzsh-theme-passion```;
|
```shell
|
||||||
2. copy theme: ```cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme```;
|
git clone https://github.com/philip82148/simplerich-zsh-theme
|
||||||
3. modify rc: open ```~/.zshrc``` find ```ZSH_THEME``` edit to ```ZSH_THEME="passion"```;
|
```
|
||||||
4. execute rc: ```source ~/.zshrc```;
|
|
||||||
|
|
||||||
* see also: [Overriding and adding themes](https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes);
|
2. Copy Theme:
|
||||||
|
|
||||||
#### Trouble Shooting
|
```shell
|
||||||
|
cp ./simplerich-zsh-theme/simplerich.zsh-theme ~/.oh-my-zsh/themes/
|
||||||
|
```
|
||||||
|
|
||||||
##### macOS, command not found: gdate
|
3. Edit ~/.zshrc:
|
||||||
|
|
||||||
* passion.zsh-theme depends on cmd ```gdate``` to get current time in milliseconds. get ```gdate``` on macOS by running ```brew install coreutils``` then ```source ~/.zshrc```;
|
```shell:~/.zshrc
|
||||||
* see also: [#12](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/12);
|
# Find the line that reads ZSH_THEME="..." and replace it with the following code.
|
||||||
|
ZSH_THEME="simplerich"
|
||||||
|
```
|
||||||
|
|
||||||
##### Linux, command not found: bc
|
4. Load ~/.zshrc:
|
||||||
|
|
||||||
* passion.zsh-theme depends on cmd ```bc``` to calculate the command running time cost. [get bc on Linux](https://www.tecmint.com/bc-command-examples/#:~:text=If%20you%20don%E2%80%99t%20have%20bc%20on%20your%20system%2C,command%20prompt%20and%20simply%20start%20calculating%20your%20expressions.) then ```source ~/.zshrc```;
|
```shell
|
||||||
* see also: [#13](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/13);
|
source ~/.zshrc
|
||||||
|
```
|
||||||
|
|
||||||
##### Centos 7, shell exit
|
- See Also: [Overriding and adding themes](https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes);
|
||||||
|
|
||||||
* may caused by [set timer to zsh prompt](https://github.com/ChesterYue/ohmyzsh-theme-passion/blob/8f71c43c2df91810249ab00ff40fc4ca63207467/passion.zsh-theme#L197-L208);
|
## Trouble Shooting
|
||||||
* see also: [#4](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/4);
|
|
||||||
|
|
||||||
<details> <!-- markdownlint-disable-line -->
|
### macOS, command not found: gdate
|
||||||
<summary><h3>Extra Preferences</h3></summary> <!-- markdownlint-disable-line -->
|
|
||||||
|
|
||||||
#### Zsh Plugins
|
- simplerich.zsh-theme depends on cmd `gdate` to get current time in milliseconds. get `gdate` on macOS by running `brew install coreutils` then `source ~/.zshrc`;
|
||||||
|
- See Also: [#12](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/12);
|
||||||
|
|
||||||
|
### Linux, command not found: bc
|
||||||
|
|
||||||
|
- simplerich.zsh-theme depends on cmd `bc` to calculate the command running time cost. [get bc on Linux](https://www.tecmint.com/bc-command-examples/#:~:text=If%20you%20don%E2%80%99t%20have%20bc%20on%20your%20system%2C,command%20prompt%20and%20simply%20start%20calculating%20your%20expressions.) then `source ~/.zshrc`;
|
||||||
|
- see also: [#13](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/13);
|
||||||
|
|
||||||
|
### Centos 7, shell exit
|
||||||
|
|
||||||
|
- may caused by [set timer to zsh prompt](https://github.com/ChesterYue/ohmyzsh-theme-passion/blob/8f71c43c2df91810249ab00ff40fc4ca63207467/passion.zsh-theme#L197-L208);
|
||||||
|
- see also: [#4](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/4);
|
||||||
|
|
||||||
|
## Extra Preferences
|
||||||
|
|
||||||
|
### Zsh Plugins
|
||||||
|
|
||||||
1. [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions);
|
1. [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions);
|
||||||
2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting);
|
2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting);
|
||||||
|
|
||||||
#### iTerm2 Preferences
|
### iTerm2 Preferences
|
||||||
|
|
||||||
##### Color
|
#### Color
|
||||||
|
|
||||||
<!-- cspell:disable-next-line -->
|
<!-- cspell:disable-next-line -->
|
||||||
* iTerm2: settings -> Profiles -> Colors -> Color Presets -> import ```./passion.itermcolors``` 
|
|
||||||
* alternate terminal: try [Alternate terminal installation and configuration](https://iterm2colorschemes.com/);
|
|
||||||
|
|
||||||
##### Status Bar
|
- iTerm2: settings -> Profiles -> Colors -> Color Presets -> import `./simplerich.itermcolors` 
|
||||||
|
- alternate terminal: try [Alternate terminal installation and configuration](https://iterm2colorschemes.com/);
|
||||||
|
|
||||||
* iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar  
|
#### Status Bar
|
||||||
|
|
||||||
##### Font
|
- iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar  
|
||||||
|
|
||||||
* install [JetBrains Mono](https://www.jetbrains.com/lp/mono/);
|
#### Font
|
||||||
* iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font 
|
|
||||||
|
|
||||||
</details> <!-- markdownlint-disable-line -->
|
- install [JetBrains Mono](https://www.jetbrains.com/lp/mono/);
|
||||||
|
- iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font 
|
||||||
|
|
|
||||||
BIN
demo/demo.png
BIN
demo/demo.png
Binary file not shown.
|
Before Width: | Height: | Size: 975 KiB After Width: | Height: | Size: 73 KiB |
Loading…
Add table
Reference in a new issue