Difference between revisions of "Export (Bash buildin)"

From wikieduonline
Jump to navigation Jump to search
 
(42 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lowercase}}
 +
https://man7.org/linux/man-pages/man1/export.1p.html
  
 +
* <code>export YOUR_VARIABLE="YOUR_VALUE"</code>
 +
* <code>echo '[[export]] [[HISTTIMEFORMAT]]="%d/%m/%y %T "' >> ~/.[[bash_profile]]</code><ref>https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/</ref>
 +
  
* <pre>[[export]] PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre>
+
*<code>ssh SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash" </code>
  
 +
 +
* <code>[[export]] TERM=[[xterm]]</code>
 +
 +
* <code>export [[AWS_CLI_AUTO_PROMPT]]=on</code>
 +
 +
* <code>export [[LANG]]=[[en_US]].[[UTF-8]]</code>
 +
 +
* <code>export [[PATH]]=$PATH:$(dirname $([[go list]] -f '{{.Target}}' .))</code>
 +
 +
* <code>[[export]] [[AWS_PROFILE]]=your-profile</code>
 +
 +
 +
export PATH=$HOME/brew/bin:$PATH >> ~/.zshrc # or ~/.bashrc
 +
[[export: not valid in this context]]: /Users/Guest/.bashrc
 +
 +
Solution: check you are not using a shell different from [[Bash]]
 +
 +
 +
== GitLab CI ==
 +
[[job_name:]]
 +
  [[GitLab pipelines: script:|script:]]
 +
    - export
 +
 +
== Related terms ==
 +
* <code>[[~/.zshrc]]</code>
 +
* <code>[[env]]</code>
 +
* <code>[[declare -x]]</code>
 +
* <code>[[locale]]</code>
 +
* <code>[[export (TypeScript)]]</code>
 +
* <code>[[export -f]]</code>
 +
* [[GitLab environment variables]]
 +
* <code>[[shopt]]</code>
 +
* <code>[[dir env:]]</code>
 +
* [[Powershell]]: <code>[[$env]]:AWS_PROFILE="yourprofile"</code>
 +
* <code>export DATE=$(date -I); echo $DATE</code>
  
 
== See also ==
 
== See also ==
* <code>[[unset]]</code>
+
* {{export}}
 +
* {{env}}
 +
* {{builtin}}
 +
 
 +
 
 +
[[Category:Computing]]

Latest revision as of 11:23, 12 February 2024

https://man7.org/linux/man-pages/man1/export.1p.html


  • ssh SERVER_NAME -t "export PS1=your_text; bash"



export PATH=$HOME/brew/bin:$PATH >> ~/.zshrc # or ~/.bashrc
export: not valid in this context: /Users/Guest/.bashrc

Solution: check you are not using a shell different from Bash


GitLab CI[edit]

job_name:
 script:
   - export

Related terms[edit]

See also[edit]

  • https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
  • Advertising: