Guest User

Untitled

a guest
Feb 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. ### NAME:
  2. reporter
  3.  
  4. ### SYNOPSIS:
  5. ```bash
  6. source /path/to/reporter [all | aliases | bindings | completion | functions |
  7. limits | options | variables | zstyles]
  8. ```
  9.  
  10. ### DESCRIPTION:
  11. `reporter` prints your current environment variables, shell
  12. variables, limits, completion settings, and option settings to
  13. stdout in the form of a script.
  14.  
  15. If you run into a zsh bug, someone can source the output script to
  16. recreate most of the environment under which you were working.
  17.  
  18. **IMPORTANT**: "_source_" this script, don't try to run it directly.
  19. Otherwise it won't report the settings for your current shell session.
  20.  
  21. ### OPTIONS:
  22. All command-line options can be abbreviated.
  23. **aliases** prints only `aliases`.
  24. **bindings** prints only`bindkey` commands.
  25. **completion** prints only`compctl` commands.
  26. **functions** prints`autoload` commands or actual functions.
  27. **limits** prints`limit` commands for things like cputime, etc.
  28. **modules** prints`zmodload` commands.
  29. **options** prints`setopt` commands.
  30. **variables** prints both shell and environment variables.
  31. **zstyles** prints`zstyle` commands
  32.  
  33.  
  34. **all** tries to find every useful setting under your shell.
  35. This is the default, and it's the same as typing all of the above options on the command line.
  36.  
  37. ### CAVEATS:
  38. Assumes that you have the following programs in your search path:
  39. ``` awk, cut, echo, grep, sed, sort```
  40. Assumes that your C preprocessor lives in /lib/cpp or /usr/ccs/lib/cpp.
  41. Uses (and unsets) variables beginning with `reporter_`.
  42. Won't work for versions of zsh that are older than 3.1.3 or so.
  43.  
  44. ### RESTRICTIONS:
  45.  
  46. > DON'T: pretend you wrote it, sell it, or blame me if it breaks.
  47. > DO: as ye will an' ye harm none.
  48. > --Wiccan saying, I think
  49.  
  50. ### BUGS:
  51. I'm sure there are more than a few. To be safe, run `zsh -f` before
  52. sourcing the output from this script. If you have `screen`, you may
  53. want to use that, too; I hammered my terminal settings beyond repair
  54. when using an early version, and "`screen`" saved me from having to
  55. login on another terminal.
  56.  
  57. ### HISTORY:
  58. The name was ripped off from the `Emacs` "`reporter.el`" function.
  59. The idea came from a mail message to the ZSH mailing list:
Add Comment
Please, Sign In to add comment