diff --git a/pages/linux/export.md b/pages/linux/export.md new file mode 100644 index 0000000000..c09481e8e2 --- /dev/null +++ b/pages/linux/export.md @@ -0,0 +1,15 @@ +# export + +> Command to mark shell variables in the current environment to be exported with any newly forked child processes. + +- Set a new environment variable: + +`export {{VARIABLE}}={{value}}` + +- Remove an environment variable: + +`export -n {{VARIABLE}}` + +- Append something to the PATH variable: + +`export PATH=$PATH:{{path/to/append}}` diff --git a/pages/osx/export.md b/pages/osx/export.md new file mode 100644 index 0000000000..c09481e8e2 --- /dev/null +++ b/pages/osx/export.md @@ -0,0 +1,15 @@ +# export + +> Command to mark shell variables in the current environment to be exported with any newly forked child processes. + +- Set a new environment variable: + +`export {{VARIABLE}}={{value}}` + +- Remove an environment variable: + +`export -n {{VARIABLE}}` + +- Append something to the PATH variable: + +`export PATH=$PATH:{{path/to/append}}`