Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #
  2. # Executes commands at login pre-zshrc.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7.  
  8. #
  9. # Browser
  10. #
  11.  
  12. if [[ "$OSTYPE" == darwin* ]]; then
  13. export BROWSER='open'
  14. fi
  15.  
  16. #
  17. # Editors
  18. #
  19.  
  20. export EDITOR='vim'
  21. export VISUAL='vim'
  22. export PAGER='less'
  23.  
  24. #
  25. # Language
  26. #
  27.  
  28. if [[ -z "$LANG" ]]; then
  29. export LANG='en_US.UTF-8'
  30. fi
  31.  
  32. #
  33. # Paths
  34. #
  35.  
  36. # Ensure path arrays do not contain duplicates.
  37. typeset -gU cdpath fpath mailpath path
  38.  
  39. # Set the list of directories that cd searches.
  40. # cdpath=(
  41. # $cdpath
  42. # )
  43.  
  44. # Set the list of directories that Zsh searches for programs.
  45. path=(
  46. /usr/local/opt/grep/libexec/gnubin
  47. /usr/local/opt/gnu-getopt/bin
  48. /usr/local/opt/gettext/bin
  49. /usr/local/opt/coreutils/libexec/gnubin
  50. /usr/local/opt/findutils/libexec/gnubin
  51. /usr/local/opt/gnu-tar/libexec/gnubin
  52. /usr/local/opt/gnu-sed/libexec/gnubin
  53. /usr/local/opt/openssl/bin
  54. /usr/local/opt/sqlite/bin
  55. /usr/local/opt/go/libexec/bin
  56. /usr/local/opt/openldap/{bin,sbin}
  57. /usr/local/{bin,sbin}
  58. $path
  59. )
  60.  
  61. #
  62. # Less
  63. #
  64.  
  65. # Set the default Less options.
  66. # Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
  67. # Remove -X and -F (exit if the content fits on one screen) to enable it.
  68. export LESS='-F -g -i -M -R -S -w -X -z-4'
  69.  
  70. # Set the Less input preprocessor.
  71. # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
  72. if (( $#commands[(i)lesspipe(|.sh)] )); then
  73. export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement