-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.yml
More file actions
157 lines (130 loc) · 4.04 KB
/
Copy pathsetup.yml
File metadata and controls
157 lines (130 loc) · 4.04 KB
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
---
- name: Dev env setup
hosts: local
tasks:
- name: Tap caskroom/fonts for powerline fonts
homebrew_tap:
name: homebrew/cask-fonts
# - name: Tap caskroom/versions for edge versions
# homebrew_tap:
# name: homebrew/cask-versions
- name: Install fonts
homebrew_cask:
name: font-firacode-nerd-font
- name: Install neovim
homebrew:
name: neovim
install_options: HEAD
- name: Install other utilities
homebrew:
name: ['ruby', 'rbenv', 'zsh-syntax-highlighting', 'ctags', 'fortune', 'node', 'diff-so-fancy']
- name: Add node support for neovim
npm:
name: neovim
global: yes
- name: Add ruby support for neovim
gem:
name: neovim
- name: Add python support for neovim
pip:
name: neovim
executable: pip3
- name: Remove the default zshrc file
file:
path: ~/.zshrc
state: absent
- name: Create config directory for neovim
file:
path: ~/.config/nvim/
state: directory
- name: Symlink the config file for zsh
file:
src: "$HOME/dotfiles/.zshrc"
dest: "$HOME/.zshrc"
state: link
force: yes
follow: false
- name: Symlink the cobalt theme to oh my zsh
file:
src: "$HOME/dotfiles/cobalt2.zsh-theme"
dest: "$ZSH/themes/cobalt2.zsh-theme"
state: link
force: yes
follow: false
- name: Clone zsh-autosuggestions to oh-my-zsh
git:
repo: https://github.com/zsh-users/zsh-autosuggestions
dest: "$ZSH/custom/plugins/zsh-autosuggestions"
- name: Clone zsh-completions to oh-my-zsh
git:
repo: https://github.com/zsh-users/zsh-completions
dest: "$ZSH/custom/plugins/zsh-completions"
- name: get the afterglow theme to the home directory
get_url:
url: https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Afterglow.itermcolors
dest: "$HOME/Afterglow.itermcolors"
- name: Specify the preferences directory for iterm2 preferences
command: defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/dotfiles/iterm2"
- name: Tell iTerm2 to use the custom preferences in the above specifed directory
command: defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
- name: Symlink the neovim config files
file:
src: "$HOME/dotfiles/nvim/{{ item.src }}"
dest: "$HOME/.config/nvim/{{ item.dest }}"
state: link
force: yes
follow: false
with_items:
- { src: init.vim, dest: init.vim }
- { src: colorschemes.vim, dest: colorschemes.vim }
- { src: abbrev.vim, dest: abbrev.vim }
- { src: key_mappings.vim, dest: key_mappings.vim }
- { src: plugins_list.vim, dest: plugins_list.vim }
- { src: plugin_settings.vim, dest: plugin_settings.vim }
- { src: vim_settings.vim, dest: vim_settings.vim }
- name: Symlink the neovim colorscheme
file:
src: "$HOME/dotfiles/nvim/colors"
dest: "$HOME/.config/nvim/colors"
state: link
force: yes
follow: false
- name: Symlink the gitignore file
file:
src: "$HOME/dotfiles/global_gitignore"
dest: "$HOME/.gitignore_global"
state: link
force: yes
follow: false
- name: Symlink the git_template directory
file:
src: "$HOME/dotfiles/.git_template"
dest: "$HOME/.git_template"
state: link
force: yes
follow: false
- name: Symlink the git config file
file:
src: "$HOME/dotfiles/.gitconfig"
dest: "$HOME/.gitconfig"
state: link
force: yes
follow: false
- name: Symlink the short dir alias file
file:
src: "$HOME/dotfiles/short-dir.zsh"
dest: "$ZSH/custom/short-dir.zsh"
state: link
force: yes
follow: false
- name: Symlink the docker alias file
file:
src: "$HOME/dotfiles/docker-rails.zsh"
dest: "$ZSH/custom/docker-rails.zsh"
state: link
force: yes
follow: false
- name: Uninstall the ruby installed by homebrew
homebrew:
name: ruby
state: absent