Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename pure.zsh ---> pure.plugin.zsh #73

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion arch/PKGBUILD
Expand Up @@ -19,6 +19,6 @@ pkgver() {

package() {
cd $srcdir/$pkgname
install -Dm644 pure.zsh \
install -Dm644 pure.plugin.zsh \
"$pkgdir/usr/share/zsh/functions/Prompts/prompt_pure_setup"
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -13,10 +13,10 @@
"node": ">=0.10.0"
},
"scripts": {
"postinstall": "dest=/usr/local/share/zsh/site-functions/; mkdir -p $dest && ln -sf \"$PWD/pure.zsh\" $dest/prompt_pure_setup || echo 'Could not automagically symlink the prompt. Check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually'"
"postinstall": "dest=/usr/local/share/zsh/site-functions/; mkdir -p $dest && ln -sf \"$PWD/pure.plugin.zsh\" $dest/prompt_pure_setup || 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.plugin.zsh"
],
"keywords": [
"zsh",
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions readme.md
Expand Up @@ -38,14 +38,14 @@ That's it. Skip to [Getting started](#getting-started).
1. Either…
- Clone this repo
- add it as a submodule, or
- just download `pure.zsh`
- just download `pure.plugin.zsh`

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`.
2. Symlink `pure.plugin.zsh` to somewhere in [`$fpath`](http://www.refining-linux.org/archives/46/ZSH-Gem-12-Autoloading-functions/) with the name `prompt_pure_setup`.

#### Example

```sh
$ ln -s "$PWD/pure.zsh" /usr/local/share/zsh/site-functions/prompt_pure_setup
$ ln -s "$PWD/pure.plugin.zsh" /usr/local/share/zsh/site-functions/prompt_pure_setup
```
*Run `echo $fpath` to see possible locations.*

Expand All @@ -59,7 +59,7 @@ fpath=( "$HOME/.zfunctions" $fpath )
Then install the theme there:

```sh
$ ln -s "$PWD/pure.zsh" "$HOME/.zfunctions/prompt_pure_setup"
$ ln -s "$PWD/pure.plugin.zsh" "$HOME/.zfunctions/prompt_pure_setup"
```


Expand Down Expand Up @@ -109,11 +109,11 @@ To have commands colorized as seen in the screenshot install [zsh-syntax-highlig

### [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.plugin.zsh` to `~/.oh-my-zsh/custom/pure.plugin.zsh-theme` and add `ZSH_THEME="pure"` to your `.zshrc` file.

### [prezto](https://github.com/sorin-ionescu/prezto)

Symlink (or copy) `pure.zsh` to `~/.zprezto/modules/prompt/functions/prompt_pure_setup` alongside Prezto's other prompts. Then `set zstyle ':prezto:module:prompt' theme 'pure'` in `~/.zpreztorc`.
Symlink (or copy) `pure.plugin.zsh` to `~/.zprezto/modules/prompt/functions/prompt_pure_setup` alongside Prezto's other prompts. Then `set zstyle ':prezto:module:prompt' theme 'pure'` in `~/.zpreztorc`.

### [antigen](https://github.com/zsh-users/antigen)

Expand Down