-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile
40 lines (32 loc) · 1016 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
40
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=$PATH:$HOME/.local/bin:$HOME/bin
if [ -d "$HOME/app_inst" ]; then
export APPINST_PATH=$HOME/app_inst
APPINST_BINS=$(echo $APPINST_PATH/*/bin | sed 's/[ \t]\+/:/g')
fi
if [ -n "$APPINST_BINS" ]; then
export PATH=$APPINST_BINS:$PATH
fi
export EDITOR=$(if which kak > /dev/null 2>&1; then echo kak; else echo vim; fi)
# history options
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=20000
export HISTFILESIZE=20000
shopt -s histappend
# virtualenvwrapper
if which virtualenvwrapper.sh > /dev/null 2>&1; then
export WORKON_HOME=$HOME/.virtualenvs
if which python3 > /dev/null 2>&1; then
export VIRTUALENVWRAPPER_PYTHON="`which python3`"
export VIRTUALENVWRAPPER_VIRTUALENV="`which pyvenv`"
fi
if [ ! -d "$WORKON_HOME" ]; then
mkdir -p "$WORKON_HOME"
fi
source `which virtualenvwrapper.sh`
fi