mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
export: add page (#1824)
This commit is contained in:
commit
ec05de69b7
2 changed files with 30 additions and 0 deletions
15
pages/linux/export.md
Normal file
15
pages/linux/export.md
Normal file
|
@ -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}}`
|
15
pages/osx/export.md
Normal file
15
pages/osx/export.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue