Difference between revisions of "Export (Bash buildin)"
Jump to navigation
Jump to search
↑ https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
Line 2: | Line 2: | ||
* <code>export YOUR_VARIABLE="YOUR_VALUE"</code> | * <code>export YOUR_VARIABLE="YOUR_VALUE"</code> | ||
− | |||
− | |||
* <pre>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre> | * <pre>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre> | ||
− | |||
* <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> | * <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> | ||
Revision as of 11:47, 18 February 2021
This article is a Draft. Help us to complete it.
export YOUR_VARIABLE="YOUR_VALUE"
export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
[1]
ssh SERVER_NAME -t "export PS1=your_text; bash"
See also
export
,env
,printenv
,declare, export -f
,/etc/environment
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: