diff --git a/pages/common/export.md b/pages/common/export.md deleted file mode 100644 index 8150f65cd..000000000 --- a/pages/common/export.md +++ /dev/null @@ -1,15 +0,0 @@ -# export - -> Command to set environment variables. - -- Set a new environment variable: - -`export {{VARIABLE}}={{value}}` - -- Echo the value of an environment variable (don't forget the Dollar sign): - -`echo {{$VARIABLE}}` - -- Append something to the PATH variable: - -`export PATH=$PATH:{{/path/to/append}}` diff --git a/pages/linux/export.md b/pages/linux/export.md new file mode 100644 index 000000000..28ffe0e56 --- /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}}` \ No newline at end of file diff --git a/pages/osx/export.md b/pages/osx/export.md new file mode 100644 index 000000000..28ffe0e56 --- /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}}` \ No newline at end of file