-
Notifications
You must be signed in to change notification settings - Fork 0
/
.install_dotfiles.sh
51 lines (44 loc) · 1.44 KB
/
.install_dotfiles.sh
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
git clone --bare https://github.com/gcuendet/dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
config submodule update --init --recursive
# Install YouCompleteMe (needs to compile dependencies)
# ---
# cd ~/.vim/pack/gabriel/start/youcompleteme
# ./install.py --clang-completer
# Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
# Intall k plugin
export ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
git clone https://github.com/supercrabtree/k $ZSH_CUSTOM/plugins/k
# Install powerline fonts (to use with tmux-config)
# ---
cd /tmp
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
# Install tmux-config
# ---
cd ~/.tmux-config
# Patch tmux config for compatibility with tmux 3
# see https://github.com/samoshkin/tmux-config/pull/31 for details
curl -L https://patch-diff.githubusercontent.com/raw/samoshkin/tmux-config/pull/31.patch > /tmp/tmuxFix.patch
git apply /tmp/tmuxFix.patch
rm /tmp/tmuxFix.patch
./install.sh