2019-10-06 20:41:31 +00:00
|
|
|
---
|
|
|
|
# Common/Usersettings: Universial Dotfiles. Update regularly.
|
|
|
|
|
2019-10-10 14:49:55 +00:00
|
|
|
- name: usersettings - Install/ Update oh-my-zsh for current user
|
2019-10-06 20:41:31 +00:00
|
|
|
git:
|
|
|
|
repo: https://github.com/robbyrussell/oh-my-zsh.git
|
|
|
|
dest: .oh-my-zsh
|
|
|
|
|
|
|
|
- name: usersettings - Install/ Update fzf sources
|
|
|
|
git:
|
|
|
|
repo: https://github.com/junegunn/fzf.git
|
|
|
|
dest: .fzf
|
2019-11-12 20:42:58 +00:00
|
|
|
register: fzf_git
|
2019-10-06 20:41:31 +00:00
|
|
|
- name: (Re-)Install fzf
|
|
|
|
shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
|
|
|
when:
|
|
|
|
- fzf_git.after != fzf_git.before
|
|
|
|
|
|
|
|
- name: usersettings - Copy dotfiles
|
|
|
|
copy:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
2019-11-12 20:42:58 +00:00
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_gitignore_global", dest: ".gitignore_global" }
|
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_tmux.conf", dest: ".tmux.conf" }
|
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_vimrc", dest: ".vimrc" }
|
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_zshrc", dest: ".zshrc" }
|
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_oh-my-zsh/custom/themes/agnoster.zsh-theme", dest: ".oh-my-zsh/custom/themes/agnoster.zsh-theme" }
|
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_oh-my-zsh/custom/themes/jtbx.zsh-theme", dest: ".oh-my-zsh/custom/themes/jtbx.zsh-theme" }
|
2019-10-14 06:00:17 +00:00
|
|
|
- name: usersettings - Set global gitconfig
|
|
|
|
copy:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
2019-11-12 20:42:58 +00:00
|
|
|
- { src: "{{ role_path }}/files/dotfiles/_gitconfig", dest: ".gitconfig" }
|
2019-10-14 06:00:17 +00:00
|
|
|
when: usersetup_gitconfig == true
|
2019-10-06 20:41:31 +00:00
|
|
|
|
2019-10-27 21:34:31 +00:00
|
|
|
- name: usersettings - Create .vim directory
|
|
|
|
file:
|
|
|
|
path: .vim/autoload
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: usersettings - Install vim plugin manager
|
|
|
|
get_url:
|
|
|
|
url: https://tpo.pe/pathogen.vim
|
|
|
|
dest: .vim/autoload/pathogen.vim
|
|
|
|
|
2019-10-06 20:41:31 +00:00
|
|
|
- name: usersettings - Install vim plugins
|
|
|
|
git:
|
|
|
|
repo: "{{ item.repo }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
2019-11-12 20:42:58 +00:00
|
|
|
- { repo: "https://github.com/itchyny/lightline.vim", dest: ".vim/bundle/lightline" }
|
|
|
|
- { repo: "https://github.com/w0rp/ale", dest: ".vim/bundle/ale" }
|
|
|
|
- { repo: "https://github.com/airblade/vim-gitgutter", dest: ".vim/bundle/vim-gitgutter" }
|
|
|
|
- { repo: "https://github.com/sheerun/vim-polyglot", dest: ".vim/bundle/vim-polyglot" }
|
|
|
|
- { repo: "https://github.com/tpope/vim-commentary", dest: ".vim/bundle/vim-commentary" }
|