minor tweaks
This commit is contained in:
13
package.json
13
package.json
@@ -7,7 +7,7 @@
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
@@ -16,15 +16,22 @@
|
||||
"postinstall": "dest=/usr/local/share/zsh/site-functions/; mkdir -p $dest && ln -sf \"$PWD/pure.zsh\" $dest/prompt_pure_setup && ln -sf \"$PWD/async.zsh\" $dest/async || echo 'Could not automagically symlink the prompt. Check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually'"
|
||||
},
|
||||
"files": [
|
||||
"pure.zsh"
|
||||
"pure.zsh",
|
||||
"async.zsh"
|
||||
],
|
||||
"keywords": [
|
||||
"zsh",
|
||||
"zshell",
|
||||
"sh",
|
||||
"shell",
|
||||
"bash",
|
||||
"pure",
|
||||
"prompt",
|
||||
"theme"
|
||||
"theme",
|
||||
"git",
|
||||
"async",
|
||||
"fast",
|
||||
"minimal",
|
||||
"pretty"
|
||||
]
|
||||
}
|
||||
|
||||
1
pure.zsh
1
pure.zsh
@@ -25,6 +25,7 @@
|
||||
|
||||
# turns seconds into human readable time
|
||||
# 165392 => 1d 21h 56m 32s
|
||||
# https://github.com/sindresorhus/pretty-time-zsh
|
||||
prompt_pure_human_time() {
|
||||
echo -n " "
|
||||
local tmp=$1
|
||||
|
||||
11
readme.md
11
readme.md
@@ -2,7 +2,7 @@
|
||||
|
||||
> Pretty, minimal and fast ZSH prompt
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Overview
|
||||
@@ -28,7 +28,7 @@ Can be installed with `npm` or manually. Requires git 2.0.0+ and ZSH 5.0.0+.
|
||||
|
||||
### npm
|
||||
|
||||
```sh
|
||||
```
|
||||
$ npm install --global pure-prompt
|
||||
```
|
||||
|
||||
@@ -47,7 +47,7 @@ That's it. Skip to [Getting started](#getting-started).
|
||||
|
||||
#### Example
|
||||
|
||||
```sh
|
||||
```
|
||||
$ ln -s "$PWD/pure.zsh" /usr/local/share/zsh/site-functions/prompt_pure_setup
|
||||
$ ln -s "$PWD/async.zsh" /usr/local/share/zsh/site-functions/async
|
||||
```
|
||||
@@ -139,15 +139,12 @@ Add `antigen bundle sindresorhus/pure` to your .zshrc file (do not use the `anti
|
||||
|
||||
## FAQ
|
||||
|
||||
### Do you hate almost all software?
|
||||
|
||||
[Yes.](https://gist.github.com/cookrn/4015437)
|
||||
|
||||
### I am stuck in a shell loop in my terminal that ask me to authenticate. What should I do ?
|
||||
|
||||
[This is a known issue](https://github.com/sindresorhus/pure/issues/76).
|
||||
Using `git pull` when you get the username prompt should help you to break the loop by giving you a real prompt for this. **[This has been fixed in git 2.3](https://github.com/sindresorhus/pure/commit/f43ab97e1cf4a276b7a6e33eac055ee16610be15)**
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
|
||||
Reference in New Issue
Block a user