From 736925341c5223a729f3099fc3619e5a4cac451f Mon Sep 17 00:00:00 2001 From: Kai Neuwerth Date: Wed, 20 Dec 2017 08:46:14 +0100 Subject: [PATCH] export: moved to linux directory and created a copy in the osx directory, removed echo example from export.md, added a more detailed description of the export command, added an example how to remove an environment variable --- pages/common/export.md | 15 --------------- pages/linux/export.md | 15 +++++++++++++++ pages/osx/export.md | 15 +++++++++++++++ 3 files changed, 30 insertions(+), 15 deletions(-) delete mode 100644 pages/common/export.md create mode 100644 pages/linux/export.md create mode 100644 pages/osx/export.md 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