-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathpackage.json
More file actions
49 lines (49 loc) · 1.97 KB
/
Copy pathpackage.json
File metadata and controls
49 lines (49 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "pure-prompt",
"version": "1.28.1",
"description": "Pretty, minimal and fast ZSH prompt",
"license": "MIT",
"repository": "sindresorhus/pure",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"maintainers": [
{
"name": "Mathias Fredriksson",
"url": "https://github.com/mafredri"
}
],
"scripts": {
"prepack": "rm -f prompt_pure_setup async && cp pure.zsh prompt_pure_setup && cp async.zsh async",
"postpack": "git checkout -- prompt_pure_setup async",
"postinstall": "if [ -e /opt/homebrew/bin/zsh ]; then PURE_DEST=/opt/homebrew/share/zsh/site-functions npm run --silent postinstall-link && exit 0; elif [ -e /usr/local/bin/zsh ]; then PURE_DEST=/usr/local/share/zsh/site-functions npm run --silent postinstall-link && exit 0; elif [ -e /bin/zsh ] || [ -e /usr/bin/zsh ]; then for dest in /usr/share/zsh/site-functions /usr/local/share/zsh/site-functions; do if [ -d $dest ]; then PURE_DEST=$dest npm run --silent postinstall-link && exit 0; fi; done; fi; npm run --silent postinstall-fail-instructions",
"postinstall-link": "mkdir -p \"$PURE_DEST\" && ln -sf \"$PWD/pure.zsh\" \"$PURE_DEST/prompt_pure_setup\" && ln -sf \"$PWD/async.zsh\" \"$PURE_DEST/async\"",
"postinstall-fail-instructions": "echo \"\\nERROR: Could not automagically symlink the prompt. Add the following to your \\`.zshrc\\`:\\n\\n fpath+=(\\\"\\$(npm root -g)/pure-prompt\\\")\\n\\nOr check out the readme: https://github.com/sindresorhus/pure#npm\"",
"test": "zsh tests/test.zsh",
"version": "sed -i '' -e 's/prompt_pure_state\\[version\\]=.*/prompt_pure_state[version]=\"'\"$npm_package_version\"'\"/' pure.zsh && git add pure.zsh"
},
"files": [
"pure.zsh",
"async.zsh",
"prompt_pure_setup",
"async"
],
"keywords": [
"zsh",
"zshell",
"sh",
"shell",
"bash",
"pure",
"prompt",
"theme",
"git",
"async",
"fast",
"minimal",
"pretty"
]
}