package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "pure-prompt",
  3. "version": "1.23.0",
  4. "description": "Pretty, minimal and fast ZSH prompt",
  5. "license": "MIT",
  6. "repository": "sindresorhus/pure",
  7. "funding": "https://github.com/sponsors/sindresorhus",
  8. "author": {
  9. "name": "Sindre Sorhus",
  10. "email": "sindresorhus@gmail.com",
  11. "url": "https://sindresorhus.com"
  12. },
  13. "maintainers": [
  14. {
  15. "name": "Mathias Fredriksson",
  16. "url": "https://github.com/mafredri"
  17. }
  18. ],
  19. "scripts": {
  20. "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; PURE_DEST=\"$PWD/functions\" npm run --silent postinstall-link && npm run --silent postinstall-fail-instructions",
  21. "postinstall-link": "mkdir -p \"$PURE_DEST\" && ln -sf \"$PWD/pure.zsh\" \"$PURE_DEST/prompt_pure_setup\" && ln -sf \"$PWD/async.zsh\" \"$PURE_DEST/async\"",
  22. "postinstall-fail-instructions": "echo \"\\nERROR: Could not automagically symlink the prompt. You can either:\\n\\n1. Add the following to your \\`.zshrc\\`:\\n\\n fpath+=('$PWD/functions')\\n\\n2. Or check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually\"",
  23. "version": "sed -i '' -e 's/prompt_pure_state\\[version\\]=.*/prompt_pure_state[version]=\"'\"$npm_package_version\"'\"/' pure.zsh && git add pure.zsh"
  24. },
  25. "files": [
  26. "pure.zsh",
  27. "async.zsh"
  28. ],
  29. "keywords": [
  30. "zsh",
  31. "zshell",
  32. "sh",
  33. "shell",
  34. "bash",
  35. "pure",
  36. "prompt",
  37. "theme",
  38. "git",
  39. "async",
  40. "fast",
  41. "minimal",
  42. "pretty"
  43. ]
  44. }