Skip to content

Instantly share code, notes, and snippets.

@dandydanny
Last active April 29, 2018 16:06
Show Gist options
  • Select an option

  • Save dandydanny/8dbfb292d28dde73747a to your computer and use it in GitHub Desktop.

Select an option

Save dandydanny/8dbfb292d28dde73747a to your computer and use it in GitHub Desktop.
Useful .bash_profile entries I've collected for Mac OS X
# Add rbenv to bash so that it loads every time you open a terminal
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
#Homebrew dir
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Aliasing ls command with useful options
alias ll='ls -lAhGF'
# Following is from AceBook with commands for color:
#Tell ls to be colorful
export CLICOLOR=1
#Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
#LSCOLORS: different colors for different things
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
#NVIDIA stuff
export CUDA_HOME=/usr/local/cuda
export PATH=/Developer/NVIDIA/CUDA-9.1/bin${PATH:+:${PATH}}
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-9.1/lib${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}export PATH="/usr/local/opt/opencv@2/bin:$PATH"
#OpenCV stuff
export PATH=/usr/local/opt/opencv@2/bin:$PATH
@dandydanny
Copy link
Copy Markdown
Author

Added lines from AceBook related to colored text output

@dandydanny
Copy link
Copy Markdown
Author

Add NVM related lines

@dandydanny
Copy link
Copy Markdown
Author

Removed AceBook-specific lines re: Java environment setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment