File tree 4 files changed +30
-0
lines changed
4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 33
33
# Fix SSH auth socket location so agent forwarding works with tmux and VS Code
34
34
export SSH_AUTH_SOCK=$HOME /.ssh/auth_sock
35
35
36
+ [ ` which pyenv` ] && eval " $( pyenv init -) "
37
+ [ ` which pyenv` ] && eval " $( pyenv virtualenv-init -) "
38
+
36
39
[ ` which rbenv` ] && eval " $( rbenv init -) "
37
40
38
41
[ ` which colorls` ] && source $( dirname $( gem which colorls) ) /tab_complete.sh
Original file line number Diff line number Diff line change 8
8
[ -d $HOME /.npm-packages/bin ] && PATH=" $HOME /.npm-packages/bin:$PATH "
9
9
export NODE_PATH=$NODE_PATH :$HOME /.npm-packages/lib/node_modules
10
10
11
+ # pyenv path
12
+ [ -d $HOME /.pyenv/bin ] && PATH=" $HOME /.pyenv/bin:$PATH "
13
+
11
14
# rbenv path
12
15
[ -d $HOME /.rbenv/bin ] && PATH=" $HOME /.rbenv/bin:$PATH "
13
16
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ case `uname` in
12
12
;;
13
13
esac
14
14
15
+ ./install/python.sh
15
16
[ ` which pip3` ] && sudo pip3 install -r pip/requirements.txt
16
17
[ ` which pip3` ] && pip3 install --user -r pip/requirements-user.txt
17
18
./install/ruby.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # install pyenv
4
+ if [ ` which pyenv` ]; then
5
+ pyenv update
6
+ else
7
+ curl https://pyenv.run | bash
8
+ . ~ /.bashrc
9
+ fi
10
+
11
+ # Install latest (stable) Python
12
+ python2_latest=$( pyenv install -l 2> /dev/null | awk ' $1 ~ /^2[0-9.]*$/ {latest=$1} END {print latest}' )
13
+ python_latest=$( pyenv install -l 2> /dev/null | awk ' $1 ~ /^[0-9.]*$/ {latest=$1} END {print latest}' )
14
+ if [ $python2_latest != ` pyenv version | awk ' {print $1;}' ` ]; then
15
+ if [ ` uname` = ' Linux' ]; then
16
+ sudo apt-get install -y libssl-dev
17
+ fi
18
+
19
+ pyenv install --skip-existing $python2_latest
20
+ pyenv install --skip-existing $python_latest
21
+ pyenv rehash
22
+ pyenv global $python2_latest
23
+ fi
You can’t perform that action at this time.
0 commit comments