-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.conf.yaml
202 lines (181 loc) · 5.73 KB
/
install.conf.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
- clean:
- '~'
- '~/.*'
- shell:
- description: Update submodules in dotfiles repo
command: |
cd $HOME/dotfiles
git submodule update --init --recursive
# ----- zsh -----
- clean: ['~/.zprezto/modules/prompt/functions']
# zsh is the default shell starting with macOS Catalina
#
# - shell++:
# - description: Install zsh
# condition: '! hash zsh'
# - stdall: true
# platforms:
# linux: sudo apt-get install -y zsh
# darwin: brew install zsh
#
# - shell++:
# - description: Set zsh as default shell
# condition: '! echo $SHELL | grep -q zsh'
# - stdall: true
# command: sudo chsh -s $(which zsh) $(whoami)
- shell++:
- description: Install zprezto
condition: '[ ! -d "${ZDOTFIR:-$HOME}/.zprezto" ]'
- command: |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
for rcfile in $(find "${ZDOTDIR:-$HOME}"/.zprezto/runcoms -not -path '*\.md' -type f); do
ln -sf "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile##*/}"
done
cd "${ZDOTFIR:-$HOME}/.zprezto"
git submodule update --init --recursive
- platforms:
darwin: sudo rm -f /etc/zshenv && sudo ln -s $HOME/dotfiles/zsh/etc/zshenv.os.darwin /etc/zshenv
- platform-link:
darwin:
~/.zshrc.os: zsh/zshrc.os.darwin
- link:
~/.zshenv:
path: zsh/zshenv
relink: true
~/.zshrc:
path: zsh/zshrc
relink: true
~/.zprofile:
path: zsh/zprofile
relink: true
~/.zpreztorc:
path: zsh/zpreztorc
relink: true
~/.zlogin:
path: zsh/zlogin
relink: true
# ----- vim -----
- clean:
- '~/.vim'
- '~/.vim/colors'
- link:
~/.vimrc: vim/vimrc
~/.vim/vimrc_small:
path: vim/vimrc_small
create: true
~/.vim/snippets:
path: vim/vim/snippets
create: true
~/.vim/colors/hybrid_ayk.vim:
path: vim/vim/colors/hybrid_ayk.vim
create: true
~/.vim/autoload/test:
path: vim/vim/autoload/test
create: true
- shell++:
- description: Install Neovim
condition: '! hash nvim'
- prompt: Install Neovim? (May require building from source)
default: true
- stdall: true
platforms:
linux:
- condition: '! hash apt-get 2>/dev/null || test -h $(which apt-get)'
branch:
0:
- prompt: Neovim has to build from source! Continue anyway?
default: True
- stdall: True
command: |
sudo yum -y install \
libtool autoconf automake \
cmake gcc gcc-c++ \
make pkgconfig unzip \
xclip python34 python34-devel \
python34-pip
git clone https://github.com/neovim/neovim ~/neovim
pushd ~/neovim
make
sudo make install
popd
- prompt: Delete Neovim folder at ~/neovim?
default: True
- command: rm -rf ~/neovim
1:
- stdall: true
command: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install -y neovim
sudo apt-get install -y python-dev python-pip python3-dev python3-pip xclip
- stdall: true
command: |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --auto vi
sudo update-alternatives --auto vim
sudo update-alternatives --auto editor
sudo pip install neovim
if hash pip3 2>/dev/null; then
sudo pip3 install neovim neovim-remote
fi
if hash pip-3.4 2>/dev/null; then
sudo pip-3.4 install neovim neovim-remote
fi
- shell++:
- description: Link neovim to vim
command: |
mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config}
ln -sf ~/.vim $XDG_CONFIG_HOME/nvim
ln -sf ~/.vimrc $XDG_CONFIG_HOME/nvim/init.vim
# ----- git -----
- link:
~/.gitconfig:
path: git/gitconfig
relink: true
~/.gitconfig.user: git/gitconfig.user
~/.gitignore_global: git/gitignore_global
~/.git_template: git/git_template
- platform-link:
linux:
~/.gitconfig.os: git/gitconfig.os.linux
darwin:
~/.gitconfig.os: git/gitconfig.os.darwin
# ----- tmux -----
- link:
~/.tmux.conf: tmux/tmux.conf
#- shell++:
# - description: Build tmux 2.2 from source
# condition: "! hash tmux 2>/dev/null || ! tmux -V | awk '{exit $2 < 2.2}'"
# - prompt: Download and build tmux v2.2? (May require additional packages)
# default: true
# - stdall: true
# platforms:
# darwin: echo 'TODO'
# linux: sudo apt-get install -y automake pkg-config libevent-dev ncurses-dev
# - stdall: true
# command: |
# TMUX_GITREF=9a4b45d
# curl -L "https://api.github.com/repos/tmux/tmux/tarball/$TMUX_GITREF" > /tmp/tmux-2.2.tar.gz
# cd /tmp
# tar -zxvf tmux-2.2.tar.gz
# cd "tmux-tmux-$TMUX_GITREF"
# sh autogen.sh
# ./configure
# make
# sudo make install
# cd ..
# rm -rf tmux-2.2.tar.gz "tmux-tmux-$TMUX_GITREF"
# ----- direnv -----
- link:
~/.config/direnv/direnvrc:
path: direnv/direnvrc
create: true
# ----- macos ------
- shell:
- description: Disable Dock icons from bouncing
command: |
defaults write com.apple.dock no-bouncing -bool True
killall Dock