137 |
:type 'boolean |
:type 'boolean |
138 |
:group 'eshell-var) |
:group 'eshell-var) |
139 |
|
|
140 |
|
(defcustom eshell-modify-global-environment nil |
141 |
|
"*If non-nil, using `export' changes Emacs's global environment." |
142 |
|
:type 'boolean |
143 |
|
:group 'eshell-var) |
144 |
|
|
145 |
(defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+" |
(defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+" |
146 |
"*A regexp identifying what constitutes a variable name reference. |
"*A regexp identifying what constitutes a variable name reference. |
147 |
Note that this only applies for '$NAME'. If the syntax '$<NAME>' is |
Note that this only applies for '$NAME'. If the syntax '$<NAME>' is |
204 |
"Initialize the variable handle code." |
"Initialize the variable handle code." |
205 |
;; Break the association with our parent's environment. Otherwise, |
;; Break the association with our parent's environment. Otherwise, |
206 |
;; changing a variable will affect all of Emacs. |
;; changing a variable will affect all of Emacs. |
207 |
(set (make-local-variable 'process-environment) (eshell-copy-environment)) |
(unless eshell-modify-global-environment |
208 |
|
(set (make-local-variable 'process-environment) |
209 |
|
(eshell-copy-environment))) |
210 |
|
|
211 |
(define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar) |
(define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar) |
212 |
|
|