shosei

environmental variables - OSX

Feb 23rd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. Environment variables
  2.  
  3. AFSUSER (+)
  4. Equivalent to the afsuser shell variable.
  5.  
  6. COLUMNS The number of columns in the terminal.
  7.  
  8. DISPLAY Used by X Window System. If set, the shell does not set autologout (q.v.)
  9.  
  10. EDITOR The pathname to a default editor. See also the VISUAL environ-
  11. ment variable and the run-fg-editor editor command.
  12.  
  13. GROUP (+)
  14. Equivalent to the group shell variable.
  15.  
  16. HOME Equivalent to the home shell variable.
  17.  
  18. HOST (+)
  19. Initialized to the name of the machine on which the shell is
  20. running, as determined by the gethostname(2) system call.
  21.  
  22. HOSTTYPE (+)
  23. Initialized to the type of machine on which the shell is run-
  24. ning, as determined at compile time. This variable is obsolete
  25. and will be removed in a future version.
  26.  
  27. HPATH (+)
  28. A colon-separated list of directories in which the run-help
  29.  
  30. editor command looks for command documentation.
  31.  
  32. LANG Gives the preferred character environment.
  33.  
  34. LC_CTYPE
  35. If set, only ctype character handling is changed.
  36.  
  37. LINES The number of lines in the terminal.
  38.  
  39. LS_COLORS
  40. The format of this variable is reminiscent of the termcap(5)
  41. file format; a colon-separated list of expressions of the form
  42. "xx=string", where "xx" is a two-character variable name. The
  43. variables with their associated defaults are:
  44.  
  45. no 0 Normal (non-filename) text
  46. fi 0 Regular file
  47. di 01;34 Directory
  48. ln 01;36 Symbolic link
  49. pi 33 Named pipe (FIFO)
  50. so 01;35 Socket
  51. do 01;35 Door
  52. bd 01;33 Block device
  53. cd 01;32 Character device
  54. ex 01;32 Executable file
  55. mi (none) Missing file (defaults to fi)
  56. or (none) Orphaned symbolic link (defaults to ln)
  57. lc ^[[ Left code
  58. rc m Right code
  59. ec (none) End code (replaces lc+no+rc)
  60.  
  61. You need to include only the variables you want to change from
  62. the default.
  63.  
  64. File names can also be colorized based on filename extension.
  65. This is specified in the LS_COLORS variable using the syntax
  66. "*ext=string". For example, using ISO 6429 codes, to color all
  67. C-language source files blue you would specify "*.c=34". This
  68. would color all files ending in .c in blue (34) color.
  69.  
  70. Control characters can be written either in C-style-escaped
  71. notation, or in stty-like ^-notation. The C-style notation
  72. adds ^[ for Escape, _ for a normal space character, and ? for
  73. Delete. In addition, the ^[ escape character can be used to
  74. override the default interpretation of ^[, ^, : and =.
  75.  
  76. Each file will be written as <lc> <color-code> <rc> <filename>
  77.  
  78. <ec>. If the <ec> code is undefined, the sequence <lc> <no>
  79. <rc> will be used instead. This is generally more convenient
  80. to use, but less general. The left, right and end codes are
  81. provided so you don't have to type common parts over and over
  82. again and to support weird terminals; you will generally not
  83. need to change them at all unless your terminal does not use
  84. ISO 6429 color sequences but a different system.
  85.  
  86. If your terminal does use ISO 6429 color codes, you can compose
  87. the type codes (i.e., all except the lc, rc, and ec codes) from
  88. numerical commands separated by semicolons. The most common
  89. commands are:
  90.  
  91. 0 to restore default color
  92. 1 for brighter colors
  93. 4 for underlined text
  94. 5 for flashing text
  95. 30 for black foreground
  96. 31 for red foreground
  97. 32 for green foreground
  98. 33 for yellow (or brown) foreground
  99. 34 for blue foreground
  100. 35 for purple foreground
  101. 36 for cyan foreground
  102. 37 for white (or gray) foreground
  103. 40 for black background
  104. 41 for red background
  105. 42 for green background
  106. 43 for yellow (or brown) background
  107. 44 for blue background
  108. 45 for purple background
  109. 46 for cyan background
  110. 47 for white (or gray) background
  111.  
  112. Not all commands will work on all systems or display devices.
  113.  
  114. A few terminal programs do not recognize the default end code
  115. properly. If all text gets colorized after you do a directory
  116. listing, try changing the no and fi codes from 0 to the numeri-
  117. cal codes for your standard fore- and background colors.
  118.  
  119. MACHTYPE (+)
  120. The machine type (microprocessor class or machine model), as
  121. determined at compile time.
  122.  
  123. NOREBIND (+)
  124. If set, printable characters are not rebound to self-insert-
  125. command.
  126.  
  127. OSTYPE (+)
  128. The operating system, as determined at compile time.
  129.  
  130. PATH A colon-separated list of directories in which to look for exe-
  131. cutables. Equivalent to the path shell variable, but in a dif-
  132. ferent format.
  133. In tcsh edit the ~/.tcshrc file and add a line like
  134. set path = ( $path /Developer/Tools )
  135. tcsh will then update 'PATH' based on 'path'
  136.  
  137. In bash edit the ~/.profile file and add a line like
  138. export PATH="$PATH:/Developer/Tools"
  139.  
  140. PWD (+) Equivalent to the cwd shell variable, but not synchronized to
  141. it; updated only after an actual directory change.
  142.  
  143. REMOTEHOST (+)
  144. The host from which the user has logged in remotely, if this is
  145. the case and the shell is able to determine it. Set only if
  146. the shell was so compiled; see the version shell variable.
  147.  
  148. SHLVL (+)
  149. Equivalent to the shlvl shell variable.
  150.  
  151. SYSTYPE (+)
  152. The current system type. (Domain/OS only)
  153.  
  154. TERM Equivalent to the term shell variable.
  155.  
  156. TERMCAP The terminal capability string.
  157.  
  158. USER Equivalent to the user shell variable.
  159.  
  160. VENDOR The vendor, as determined at compile time.
  161.  
  162. VISUAL The pathname to a default full-screen editor. See also the
  163. EDITOR environment variable and the run-fg-editor editor com-
  164. mand.
Advertisement
Add Comment
Please, Sign In to add comment