Commit 06f62e7a74540f827308c00bfb139f778a73b89d
1 parent
21d27c3db2
Exists in
master
and in
2 other branches
IMP sys_base_install.sh
Showing 1 changed file with 11 additions and 5 deletions Side-by-side Diff
tools/sys_base_install.sh
1 | 1 | #!/usr/bin/env bash |
2 | 2 | |
3 | 3 | # ** Initiate with: ** |
4 | -# cd && wget http://git.str8.biz/mj/zsh-config/raw/master/tools/sys_base_install.sh -O - | sh | |
4 | +# cd && wget http://git.str8.biz/mj/zsh-config/raw/master/tools/sys_base_install.sh -O | sh | |
5 | 5 | # ------------------------------------------------------------------------------------------- |
6 | 6 | |
7 | 7 | # ** Helper Functions ** |
... | ... | @@ -22,8 +22,8 @@ function set_apt_proxy { |
22 | 22 | } |
23 | 23 | |
24 | 24 | function get_shell_config { |
25 | - apt-get -yq install curl git nano zsh | |
26 | - mkdir "~/.config" | |
25 | + apt-get -yq install apt-utils curl git nano zsh | |
26 | + mkdir ~/.config | |
27 | 27 | echo "cloning zsh config.." |
28 | 28 | hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF |
29 | 29 | } |
... | ... | @@ -40,18 +40,24 @@ if [ ! -n "$ZSH" ]; then |
40 | 40 | ZSH=$ZCNF/tools/oh-my-zsh |
41 | 41 | fi |
42 | 42 | |
43 | -export DEBIAN_FRONTEND=noninteractive | |
43 | +#export DEBIAN_FRONTEND=noninteractive | |
44 | 44 | |
45 | 45 | apt-get update |
46 | 46 | |
47 | 47 | if [ "$GJ_SHELL" != "zsh" ]; then |
48 | 48 | get_shell_config |
49 | - src | |
50 | 49 | fi |
51 | 50 | |
52 | 51 | apt-get -yq upgrade && apt-get -yq dist-upgrade |
52 | +apt-get -yq install locales-all localepurge makepasswd python-setuptools | |
53 | 53 | apt-get -yq autoremove && apt-get -yq clean |
54 | 54 | |
55 | +dpkg-reconfigure localepurge | |
56 | +dpkg-reconfigure tzdata | |
57 | + | |
58 | +easy_install pip | |
59 | +pip install autoenv | |
60 | +mkdir .autoenv && ln -s /usr/local/bin/activate.sh .autoenv/activate.sh | |
55 | 61 | |
56 | 62 | echo "\033[0;34mLooking for an existing zsh config...\033[0m" |
57 | 63 | if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then |