-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
48 lines (39 loc) · 1.34 KB
/
.bash_profile
File metadata and controls
48 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
#====================================================================
# BASH Profile (Run per login shell)
#====================================================================
# Load system-wide profile
# [ -f /etc/profile ] && . /etc/profile
# The magic 'dot-files' var pointing us home
# (this lets us use relative paths allowing for portability)
export DOTFILES="$HOME/.dotFiles"
#----------------------
# mico helper functions
#----------------------
command_exists(){ command -v "$@" > /dev/null 2>&1; }
source_file(){ [ -f "$1" ] && . "$1"; }
load_dot_file(){ source_file "$DOTFILES/$1"; }
#--------------------------------------------
# Load local 'secrets' file if it exists
#--------------------------------------------
source_file "$HOME/.bash_secrets"
#------------------
# Setup environment
#------------------
load_dot_file "myShell/env"
#----------------------
# Setup $PATH
#----------------------
load_dot_file "myShell/path"
# Enable color support
# export CLICOLOR=1
# export LSCOLORS=GxFxCxDxBxegedabagaced
# if [ -f /usr/bin/source-highlight-esc.sh ]; then
# export LESSOPEN="| /usr/bin/source-highlight-esc.sh %s"
# export LESS='-R '
# fi
#
# Load RVM
# [ -f ~/.rvm/scripts/rvm ] && . ~/.rvm/scripts/rvm
# Last, we load our .bashrc (which isn't auto-ran on 1st login shell for some reason)
[ -f ~/.bashrc ] && . ~/.bashrc