Merge pull request #62 from Zearin/patch-1

readme.md: Minor formatting tweaks
This commit is contained in:
Sindre Sorhus
2014-04-06 16:39:31 +02:00

View File

@@ -12,17 +12,17 @@ Most prompts are cluttered, ugly and slow. I wanted something visually pleasing
### Why? ### Why?
- Comes with the perfect prompt character. Author went through the whole Unicode range to find it. - Comes with the perfect prompt character. Author went through the whole Unicode range to find it.
- Shows git branch and whether it's dirty using the [fastest](https://gist.github.com/3898739) method available. - Shows `git` branch and whether it's dirty using the [fastest](https://gist.github.com/3898739) method available.
- Prompt character turns red if the last command didn't exit with 0. - Prompt character turns red if the last command didn't exit with `0`.
- Command execution time will be displayed if it exceeds the set threshold. - Command execution time will be displayed if it exceeds the set threshold.
- Username and host is only displayed when in an SSH session. - Username and host only displayed when in an SSH session.
- Shows the current path in the title and the [current directory and command](screenshot-title-cmd.png) when a process is running. - Shows the current path in the title and the [current directory and command](screenshot-title-cmd.png) when a process is running.
- Can easily be used as a starting point for your own custom prompt. - Makes an excellent starting point for your own custom prompt.
## Install ## Install
Install with npm or manually. Can be installed with `npm` or manually.
### npm ### npm
@@ -34,9 +34,12 @@ That's it. Skip to [Getting started](#getting-started).
### Manually ### Manually
- Clone this repo, add it as a submodule, or just download `pure.zsh`. 1. Either…
- Clone this repo
- add it as a submodule, or
- just download `pure.zsh`
- Symlink `pure.zsh` to somewhere in [`$fpath`](http://www.refining-linux.org/archives/46/ZSH-Gem-12-Autoloading-functions/) with the name `prompt_pure_setup`. 2. Symlink `pure.zsh` to somewhere in [`$fpath`](http://www.refining-linux.org/archives/46/ZSH-Gem-12-Autoloading-functions/) with the name `prompt_pure_setup`.
#### Example #### Example
@@ -103,7 +106,7 @@ prompt pure
### [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) ### [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
Symlink (or copy) `pure.zsh` to `~/.oh-my-zsh/custom/pure.zsh-theme` and add `ZSH_THEME="pure"` to your .zshrc file. Symlink (or copy) `pure.zsh` to `~/.oh-my-zsh/custom/pure.zsh-theme` and add `ZSH_THEME="pure"` to your `.zshrc` file.
### [prezto](https://github.com/sorin-ionescu/prezto) ### [prezto](https://github.com/sorin-ionescu/prezto)