# Linuxbrew profile/bashrc example
#
# --- [ Recommended ] ---
## 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 ] ---
# These ENVs sometimes may be useful.
#
## [LD_LIBRARY_PATH] indicates where to find .so files, for ld.so
## useful when you have built some programs which are linked with
## the library packages installed with linuxbrew.
## Note, this is NOT a new variable.
#
# 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: compile a C program with linuxbrew library, and execute it.
##   $ gcc -I$BREW_INCLUDE -L$BREW_LIB -l$REQUIRED_LIBS foo.c
##   $ LD_LIBRARY_PATH=~/.linuxbrew/lib ./foo
