2017-12-20 08:46:14 +01:00
|
|
|
# export
|
|
|
|
|
|
|
|
> Command to mark shell variables in the current environment to be exported with any newly forked child processes.
|
2021-07-09 16:45:55 +02:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-export>.
|
2017-12-20 08:46:14 +01:00
|
|
|
|
|
|
|
- Set a new environment variable:
|
|
|
|
|
|
|
|
`export {{VARIABLE}}={{value}}`
|
|
|
|
|
|
|
|
- Remove an environment variable:
|
|
|
|
|
|
|
|
`export -n {{VARIABLE}}`
|
|
|
|
|
2018-11-05 17:35:14 -05:00
|
|
|
- Mark a shell function for export:
|
|
|
|
|
|
|
|
`export -f {{FUNCTION_NAME}}`
|
|
|
|
|
2017-12-20 08:46:14 +01:00
|
|
|
- Append something to the PATH variable:
|
|
|
|
|
2017-12-20 17:22:32 +05:30
|
|
|
`export PATH=$PATH:{{path/to/append}}`
|