-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
39 lines (25 loc) · 964 Bytes
/
.bash_profile
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
#if not running interactively, dont do anything
[ -z "$PS1" ] && return
#Set directory for dot files
DOTFILES_DIR="$HOME/.dotfiles"
#Source the system dotfiles
for DOTFILE in "$DOTFILES_DIR"/system/.{function,function_*,env,alias,path,completion,grep,prompt,custom}; do
[ -f "$DOTFILE" ] && . "$DOTFILE"
done
# Source nvm commands
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#Set file system colors
eval "$(dircolors "$DOTFILES_DIR"/system/.dir_colors)"
#display settings for BASH On windows
if uname -r | grep 'Microsoft' -q
then
export DISPLAY=localhost:0.0
echo Bash on Windows detected. Set DISPLAY to $DISPLAY
export DOCKER_HOST=tcp://localhost:2375
echo Set Docker_Host to localhost:2375. Enable port on docker daemon on windows
fi
#export
export DOTFILESS_DIR
umask 007