export (Bash buildin)
Jump to navigation
Jump to search
↑ https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
https://man7.org/linux/man-pages/man1/export.1p.html
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' .))
export AWS_PROFILE=your-profile
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]
~/.zshrc
env
declare -x
locale
export (TypeScript)
export -f
- GitLab environment variables
shopt
dir env:
- Powershell:
$env:AWS_PROFILE="yourprofile"
export DATE=$(date -I); echo $DATE
See also[edit]
export
,env
,printenv
,declare, export -f
,/etc/environment
- Variables: Environment variables,
env
,env-cmd
,.env/
,SHELL
,PS1, HOME, $?
,PATH
,HISTFILE, PWD, LD_LIBRARY_PATH
,printenv, getenv, getenv, direnv
, AWS cli environmental variables, envsubst,env:, env_file
(docker-compose) - builtin
Advertising: