forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
executable file
·66 lines (48 loc) · 1.87 KB
/
INSTALL
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
#!/bin/bash
set +x
sudo ls
# Add ppa
if ! which rcup &>/dev/null ; then
sudo add-apt-repository ppa:martin-frost/thoughtbot-rcm
sudo apt-get update
fi
# Install all apt-get dependencies
DEPENDECIES="git zsh ghc cabal-install silversearcher-ag tig python3-pip rcm tmux exuberant-ctags"
sudo -S apt-get install -y $DEPENDECIES
# Install pip dependencies to user and system
pip install --user powerline-status
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
sudo -S pip install virtualenvwrapper
# Update cabal
cabal update
cabal install base text directory filepath process
# Install powerline
LOCAL_POWERLINE_CFG=~/.config/powerline
[ ! -f $LOCAL_POWERLINE_CFG ] || ln -s ~/dotfiles/powerline/config_files $LOCAL_POWERLINE_CFG
# Install fzf in the termnial
# Check if it fzf repo was downloaded for the vim plugin
FZF_REPO='~/.fzf'
if [ -f $FZF_REPO ]; then
./fzf/install -all
fi
# create temp folder for vim swap files
mkdir -p ~/.vim-tmp
mkdir -p ~/.tmp
# Install solarized themes
git clone git://github.com/altercation/solarized.git ~/.solarized
git submodule update --init ~/.solarized/vim-colors-solarized
git submodule update --init ~/.solarized/tmux
#git clone https://github.com/aruhier/gnome-terminal-colors-solarized.git ~/.solarized/gnome-terminal-colors
#~/.solarized/gnome-terminal-colors/install.sh --install-dircolors -s dark -p Aitor
setupsolarize dircolors.256dark
# Install pyenv plugins
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
# Configure pyenv-virtualenvwrapper
pyenv virtualenvwrapper
# Change ubuntu configuration
#gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
# Update the fonts
fc-cache -vf ~/.fonts/
# Install using rcup tool
env RCRC=$HOME/dotfiles/rcrc rcup