Edit `~/.bashrc` and add the line `export VARIABLE=value` Type `source ~/.bashrc` or just `. ~/.bashrc` (dot `~/.bashrc`); or just start a new shell by typing `bash`