export (Bash buildin)
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
job_name: script: - export
Related terms
~/.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
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: