# Linuxbrew profile/bashrc example

# === [ Recommended ] ===
# Generally they are useful.

# for elf executables
export PATH="${HOME}/.linuxbrew/bin:${PATH}"
 
# for manpages
export MANPATH="${HOME}/.linuxbrew/share/man:${MANPATH}"
 
# for info pages
export INFOPATH="${HOME}/.linuxbrew/share/info:${INFOPATH}"
 
# === [ Extra ] ===
# Perhaps they are useful.

# [HOMEBREW_BOTTLE_DOMAIN]
#   Just like apt's sources.list, we can switch upstream to a mirror.
#   See upstream brew manpage.
#
#   export HOMEBREW_BOTTLE_DOMAIN=<HTTPS_YOUR_PREFERED_MIRROR_SITE>

# [LD_LIBRARY_PATH]
#   This environment variable tells ld.so where else to find .so files.
#   This is useful when you have built some programs which are linked with
#   the library packages installed with linuxbrew.
#   Note, this is NOT a new variable. See manpage ld.so (8).
#
#   export LD_LIBRARY_PATH="${HOME}/.linuxbrew/lib:${LD_LIBRARY_PATH}"

# [BREW_INCLUDE]
#   linuxbrew's include directory (development files)
#   this can be appended to the compiler argument list when you are
#   including library headers installed with linuxbrew, like this
#     $ gcc -I$BREW_INCLUDE ...
#
#   export BREW_INCLUDE="${HOME}/.linuxbrew/include"

# [BREW_LIB]
#   linuxbrew's library directory (shared objects)
#   this can be appended to compiler argument list when you are
#   linking to libraries installed with linuxbrew, like this 
#     $ gcc -L$BREW_LIB -l${THE_LIB_YOU_ARE_LINKING_WITH} ...
#
#   export BREW_LIB="${HOME}/.linuxbrew/lib"

# Hint: compiling and executing a C program linked against libraries
#       installed by linuxbrew.
#   $ gcc -I$BREW_INCLUDE -L$BREW_LIB -l$REQUIRED_LIBS foo.c
#   $ LD_LIBRARY_PATH=~/.linuxbrew/lib ./foo
