-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextmode.yml
127 lines (113 loc) · 5.08 KB
/
textmode.yml
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
---
- hosts: all
gather_facts: false
tasks:
- name: Directories
with_items:
- ~/tmp
- ~/git
- ~/.aws
- ~/.config
- ~/.config/yamllint
- ~/.zfunctions
file:
path: "{{ item }}"
state: directory
mode: 0700
force: true
# shell configuration
- name: shell configs
file:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
state: link
force: true
with_items:
- {src: "{{ playbook_dir }}/files/zlogin.symlink", dst: "~/.zshenv"}
- {src: "{{ playbook_dir }}/files/zlogin.symlink", dst: "~/.zlogin"}
- {src: "{{ playbook_dir }}/files/zlogout.symlink", dst: "~/.zlogout"}
- {src: "{{ playbook_dir }}/files/zprofile.symlink", dst: "~/.zprofile"}
- {src: "{{ playbook_dir }}/files/zshrc.symlink", dst: "~/.zshrc"}
- {src: "{{ playbook_dir }}/files/zshprompt.symlink", dst: "~/.zshprompt"}
- {src: "{{ playbook_dir }}/files/bashrc.symlink", dst: "~/.bashrc"}
- {src: "{{ playbook_dir }}/files/profile.symlink", dst: "~/.profile"}
- {src: "{{ playbook_dir }}/files/hushlogin.symlink", dst: "~/.hushlogin"}
- {src: "{{ playbook_dir }}/files/functions.symlink", dst: "~/.functions"}
- {src: "{{ playbook_dir }}/files/alias.symlink", dst: "~/.alias"}
- {src: "{{ playbook_dir }}/files/paths.symlink", dst: "~/.paths.sh"}
- {src: "{{ playbook_dir }}/files/alias.git.symlink", dst: "~/.alias.git"}
- {src: "{{ playbook_dir }}/files/alias.aws.symlink", dst: "~/.alias.aws"}
- {src: "{{ playbook_dir }}/files/ctags.symlink", dst: "~/.ctags"}
- {src: "{{ playbook_dir }}/files/emacs.symlink", dst: "~/.emacs"}
- {src: "{{ playbook_dir }}/files/tmux.conf.symlink", dst: "~/.tmux.conf"}
- {src: "{{ playbook_dir }}/files/flake8.symlink", dst: "~/.flake8"}
- {src: "{{ playbook_dir }}/files/pylintrc.symlink", dst: "~/.pylintrc"}
- {src: "{{ playbook_dir }}/files/gemrc.symlink", dst: "~/.gemrc"}
- {src: "{{ playbook_dir }}/files/aws.config.symlink", dst: "~/.aws/config"}
- {src: "{{ playbook_dir }}/files/ansible.cfg.symlink", dst: "~/.ansible.cfg"}
- {src: "{{ playbook_dir }}/files/yamllint.symlink", dst: "~/.config/yamllint/config"}
# vim used to be simple, now its a full directory ! :)
# - {src: "{{ playbook_dir }}/files/vimrc.symlink", dst: "~/.vimrc"}
# - {src: "{{ playbook_dir }}/files/vimrc.symlink", dst: "~/.config/nvim/init.vim"}
- {src: "{{ playbook_dir }}/nvim-config", dst: "~/.config/nvim"}
- name: install oh-my-zsh
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
args:
creates: ~/.oh-my-zsh/oh-my-zsh.sh
# clone zsh plugins
# - name: "Checkout https://github.com/zsh-users/zsh-completions.git"
# git:
# repo: https://github.com/zsh-users/zsh-completions.git
# dest: ~/git/zsh-completions
# force: true
# version: master
# - name: "Checkout Spaceship Zsh Theme"
# git:
# repo: https://github.com/denysdovhan/spaceship-prompt.git
# dest: ~/.zfunctions/spaceship-prompt
# force: true
# version: master
# - name: "Link spaceship theme"
# file:
# src: ~/.zfunctions/spaceship-prompt/spaceship.zsh-theme
# dest: ~/.zfunctions/prompt_spaceship_setup
# state: link
- name: "Checkout tmux tpm"
git:
repo: https://github.com/tmux-plugins/tpm.git
dest: ~/.tmux/plugins/tpm
force: true
version: master
# - name: "Checkout https://github.com/zsh-users/zsh-syntax-highlighting.git"
# git:
# repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
# dest: ~/git/zsh-syntax-highlighting
# force: true
# version: master
# - name: "Checkout https://github.com/zsh-users/zsh-history-substring-search"
# git:
# repo: https://github.com/zsh-users/zsh-history-substring-search
# dest: ~/git/zsh-history-substring-search
# version: master
# - name: "Checkout https://github.com/zsh-users/zsh-autosuggestions"
# git:
# repo: https://github.com/zsh-users/zsh-autosuggestions
# dest: ~/git/zsh-autosuggestions
# version: master
# - name: "Checkout https://github.com/chrissicool/zsh-256color"
# git:
# repo: https://github.com/chrissicool/zsh-256color
# dest: ~/git/zsh-256color
# version: master
# - name: "Checkout docker zsh completion"
# get_url:
# url: https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker
# dest: ~/git/zsh-completions/_docker
# - name: "vim plug vim"
# get_url:
# url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# dest: ~/.vim/autoload/plug.vim
# - name: "nvim plug"
# get_url:
# url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# dest: ~/.config/nvim/autoload/plug.vim