-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bash_env
107 lines (78 loc) · 2.91 KB
/
.bash_env
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
pathprepend ~/.local/bin
pathprepend ~/.nvm/bin
pathprepend ~/.pyenv/bin
# add nvm (NodeJS Version Manager) support
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion"
# add rust support via cargo
[[ -s "$HOME/.cargo/bin/cargo" ]] && pathprepend ~/.cargo/bin
source "$HOME/.cargo/env"
# sdkman - java installer and version manager
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
# make stubborn Java scripts work
export JAVA_HOME="$HOME/.sdkman/candidates/java/11.0.2-open/"
export JAVA9_HOME="$HOME/.sdkman/candidates/java/9.0.4-open"
# pyenv setup with virtualenv support
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# intentionally disabled:
# export VIRTUAL_ENV_DISABLE_PROMPT=1
# Files you make look like rw-rw-r
umask 002
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# append to the history file, don't overwrite it
shopt -s histappend
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
HISTFILESIZE=500000
# make it more difficult to ruin files with redirection
set -o noclobber
# the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
[ -x /usr/bin/dircolors ] && eval `dircolors -b`
# set PATH so it includes user's private bin if it exists
if [ -d ~/opt/bin ] ; then
pathprepend ~/opt/bin
fi
# you will pry vim from my dead hands
export EDITOR="vim"
# less is more
export PAGER="less -r"
# assume xterm-256color, unless the shell invoker
# has already set it to screen-256color, e.g.
# screen or tmux
[[ $TERM == "screen-256color" ]] || export TERM="xterm-256color"
export COGROOT=/home/pixelmonkey/repos
export PROJECT_HOME=$COGROOT
# ansible doesn't respect ssh/config
export ANSIBLE_REMOTE_USER=pixelmonkey
# add tab completion to Python
export PYTHONSTARTUP=~/.pythonstartup.py
# add vim-clojure support
export VIMCLOJURE_SERVER_JAR="$HOME/opt/share/vimclojure/server-2.3.3.jar"
# add vagrant support
pathprepend "/opt/vagrant/bin/"
# add Apache Spark & Storm support
pathprepend "/opt/spark/bin/"
pathprepend "/opt/storm/bin/"
# make pipsi work
pathprepend ~/.local/bin
# added by travis gem
[ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh
# cogtree customizations
[ -f $HOME/.cogtree ] && source $HOME/.cogtree
# broot
source $HOME/.config/broot/launcher/bash/br
# nix
source $HOME/.nix-profile/etc/profile.d/nix.sh