Created
July 11, 2017 16:47
-
-
Save reinaldocoelho/3435c8238933893cdf787606e2ee9e87 to your computer and use it in GitHub Desktop.
Example of bash script to export environment variables on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make vim the default editor | |
export EDITOR="vim" | |
# Larger bash history (allow 32³ entries; default is 500) | |
export HISTSIZE=32768 | |
export HISTFILESIZE=$HISTSIZE | |
export HISTCONTROL=ignoredups | |
# Make some commands not show up in history | |
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" | |
# Prefer US English and use UTF-8 | |
export LANG="en_US.UTF-8" | |
export LC_ALL="en_US.UTF-8" | |
# Highlight section titles in manual pages | |
export LESS_TERMCAP_md="${yellow}"; | |
# Don’t clear the screen after quitting a manual page | |
export MANPAGER="less -X" | |
# Set .marks as the folder for jumping symlinks | |
export MARKPATH=$HOME/.marks | |
# Set architecture flags | |
export ARCHFLAGS="-arch x86_64" | |
# Pip should only run if there is a virtualenv currently activated | |
export PIP_REQUIRE_VIRTUALENV=true | |
# Make new shells get the history lines from all previous | |
# shells instead of the default "last window closed" history | |
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" | |
# Export Homebrew Cask settings | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/usr/local/Caskroom" | |
export HOMEBREW_GITHUB_API_TOKEN=1bf56893896300b54f1f242426f6f61b6a152ee1 | |
# Use Homebrew folder rather than Home for rbenv | |
export RBENV_ROOT=/usr/local/var/rbenv | |
export FULLNAME="Hugo Rodde" | |
export CURRENT_YEAR=`date "+%Y"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment