Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. info gpg |less
  2.  
  3. ### PATH & MANPATH
  4. # My personal utilities
  5. export PATH=$PATH:$HOME/bin
  6.  
  7. ### Set the manpath based on the PATH, after man(1) parses man.conf
  8. # - No need to modify man.conf or manually modify MANPATH_MAP
  9. # - Works on Linux, FreeBSD & Darwin, unlike /etc/manpaths.d/
  10. # See "SEARCH PATH FOR MANUAL PAGES" in man(1)
  11. # Just set the man search path. Don't print output to screeen.
  12. manpath >/dev/null
  13.  
  14. unset MANPATH
  15. manpath >/dev/null
  16.  
  17. let $GROFF_NO_SGR=1
  18. runtime ftplugin/man.vim
  19.  
  20. -K, --global-apropos
  21. Search for text in all manual pages. This is a brute-force
  22. search, and is likely to take some time; if you can, you should
  23. specify a section to reduce the number of pages that need to be
  24. searched. Search terms may be simple strings (the default), or
  25. regular expressions if the --regex option is used.
  26.  
  27. # Print man pages
  28. manp() { man -t "$@" | lpr -pPrinter; }
  29.  
  30. # Create pdf of man page - requires ghostscript and mimeinfo
  31. manpdf() { man -t "$@" | ps2pdf - /tmp/manpdf_$1.pdf &&
  32. xdg-open /tmp/manpdf_$1.pdf ;}
  33.  
  34. konqueror man:(command)
  35.  
  36. konqueror man:
  37.  
  38. info read |grep \-s
  39.  
  40. man read |grep \-s
  41.  
  42. help read |grep \-s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement