2017-12-20 07:46:14 +00:00
|
|
|
# export
|
|
|
|
|
|
|
|
> Command to mark shell variables in the current environment to be exported with any newly forked child processes.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://ss64.com/osx/export.html>.
|
2017-12-20 07:46:14 +00:00
|
|
|
|
|
|
|
- Set a new environment variable:
|
|
|
|
|
|
|
|
`export {{VARIABLE}}={{value}}`
|
|
|
|
|
|
|
|
- Remove an environment variable:
|
|
|
|
|
|
|
|
`export -n {{VARIABLE}}`
|
|
|
|
|
|
|
|
- Append something to the PATH variable:
|
|
|
|
|
2017-12-20 11:52:53 +00:00
|
|
|
`export PATH=$PATH:{{path/to/append}}`
|