Skip to content

Commit dae76b9

Browse files
committed
Useful changes to .bashrc,
- like virtualenvwrapper.sh on arch - removal of RVM
1 parent 1f6680f commit dae76b9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.bashrc

+9-6
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ export PAGER="less"
2121
export EDITOR="vim"
2222
export LESS="-R"
2323
export USE_CCACHE=1
24+
export WORKON_HOME="$HOME/.virtualenvs"
2425
export CCACHE_DIR="$HOME/.ccache"
25-
#export ECLIPSE_HOME="~/cs/eclipse"
26-
export XDG_DATA_HOME="$HOME/.local/share"
27-
28-
#"$HOME/.pyenv/bin"
29-
#"$HOME/.rbenv/bin"
3026

3127
PATHS_TO_ADD=(
3228
"$HOME/bin"
29+
#"$HOME/.pyenv/bin"
30+
#"$HOME/.rbenv/bin"
3331
"/usr/bin/site_perl"
3432
"/usr/bin/vendor_perl"
3533
"/usr/bin/core_perl"
@@ -86,6 +84,12 @@ esac
8684
# Setting up extra commands if they exist.
8785
# ====
8886

87+
## for ARCH_LINUX
88+
[[ $(lsb_release --id --short) = "Arch" ]] && export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2
89+
# TODO this should be cleaned up somehow..., so many extra commands
90+
command -v "virtualenvwrapper_lazy.sh" >/dev/null && source $(which virtualenvwrapper_lazy.sh)
91+
command -v "pip" >/dev/null && eval "$(pip completion --bash)"
92+
8993
# fasd setup and aliases
9094
eval "$(fasd --init auto)"
9195
#alias v='f -t -e vim -b viminfo'
@@ -102,6 +106,5 @@ eval "$(fasd --init auto)"
102106
#eval "$(pyenv init -)"
103107
#eval "$(rbenv init -)"
104108
#eval $(ssh-agent)
105-
VIRTUALENVWRAPPER_PYTHON=/usr/sbin/python2 source virtualenvwrapper.sh
106109
workon scratch
107110
nvm use 0.10.21

0 commit comments

Comments
 (0)