From f5064bbb79af006e52469f06d905f2ce5fc5fcff Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 12 Nov 2018 10:08:52 +0100 Subject: [PATCH] Feat(dotfile): try antibody --- files/zsh_plugins.txt | 11 +++++++++++ files/zshrc | 5 +++++ tasks/dotfiles.yml | 23 +++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 files/zsh_plugins.txt create mode 100644 files/zshrc diff --git a/files/zsh_plugins.txt b/files/zsh_plugins.txt new file mode 100644 index 0000000..ea88e13 --- /dev/null +++ b/files/zsh_plugins.txt @@ -0,0 +1,11 @@ +git-flow +zsh-users/zsh-syntax-highlighting +zsh-users/zsh-autosuggestions +zsh-users/zsh-history-substring-search +desyncr/auto-ls +command-not-found +git-flow + +https://github.com/denysdovhan/spaceship-prompt spaceship + + diff --git a/files/zshrc b/files/zshrc new file mode 100644 index 0000000..47e3381 --- /dev/null +++ b/files/zshrc @@ -0,0 +1,5 @@ +# Created by newuser for 5.5.1 +# source ~/.zshrc.local +source <(antibody init) +antibody bundle < ~/.zsh_plugins.txt +PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin" diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index aac4463..c7dd805 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -37,8 +37,23 @@ with_items: "{{ me }}" when: not minimal and not server +- name: Install Antibody + aur: + name: antibody + use: makepkg + skip_installed: true + become: yes + become_user: aur_builder - name: Copy local zshrc + template: + src: files/zshrc + dest: /home/{{ item.username }}/.zshrc + owner: "{{ item.username }}" + group: "{{ item.username }}" + with_items: "{{ me }}" + +- name: Copy local zshrc.local template: src: files/zshrc.local dest: /home/{{ item.username }}/.zshrc.local @@ -46,6 +61,14 @@ group: "{{ item.username }}" with_items: "{{ me }}" +- name: Copy local zsh_plugins.txt + template: + src: files/zsh_plugins.txt + dest: /home/{{ item.username }}/.zsh_plugins.txt + owner: "{{ item.username }}" + group: "{{ item.username }}" + with_items: "{{ me }}" + - name: Copy .vim/ copy: src: files/vim/