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 1: | Line 1: | ||
− | |||
{{lowercase}} | {{lowercase}} | ||
Line 5: | Line 4: | ||
* <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> | ||
− | + | ||
+ | *<code>ssh SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash" </code> | ||
+ | |||
* <code>[[export]] TERM=[[xterm]]</code> | * <code>[[export]] TERM=[[xterm]]</code> | ||
Line 13: | Line 14: | ||
* <code>export [[LANG]]=[[en_US]].[[UTF-8]]</code> | * <code>export [[LANG]]=[[en_US]].[[UTF-8]]</code> | ||
− | * < | + | * <code>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</code> |
== Related terms == | == Related terms == |
Revision as of 12:25, 8 October 2021
export YOUR_VARIABLE="YOUR_VALUE"
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
[1]
export AWS_CLI_AUTO_PROMPT=on
export PATH=$PATH:$(dirname $(go list -f 'Template:.Target' .))
Related terms
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: