Skip to content

Instantly share code, notes, and snippets.

@bigandy
Created October 3, 2017 10:52
Show Gist options
  • Save bigandy/ac024d21d0a2a76f4bf8a98871921c38 to your computer and use it in GitHub Desktop.
Save bigandy/ac024d21d0a2a76f4bf8a98871921c38 to your computer and use it in GitHub Desktop.
Home .bash_profile
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob;
# Append to the Bash history file, rather than overwriting it
shopt -s histappend;
# Autocorrect typos in path names when using `cd`
shopt -s cdspell;
set -o vi
[[ -s /Users/andrew/.nvm/nvm.sh ]] && . /Users/andrew/.nvm/nvm.sh # This loads NVM
export EDITOR='atom-beta'
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# Added by install_latest_perl_osx.pl
[ -r /Users/andrew/.bashrc ] && source /Users/andrew/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment