adjust zsh playbook
This commit is contained in:
parent
f311309e05
commit
b2c6782e41
1 changed files with 15 additions and 8 deletions
|
@ -49,34 +49,41 @@
|
||||||
shell: |
|
shell: |
|
||||||
RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
environment:
|
environment:
|
||||||
HOME: "/home/mafyuh"
|
HOME: "/home/{{ user }}"
|
||||||
args:
|
args:
|
||||||
chdir: "/home/mafyuh"
|
chdir: "/home/{{ user }}"
|
||||||
creates: "/home/mafyuh/.oh-my-zsh"
|
creates: "/home/{{ user }}/.oh-my-zsh"
|
||||||
|
|
||||||
|
- name: Ensure custom plugins directory exists
|
||||||
|
file:
|
||||||
|
path: "{{ zsh_custom }}/plugins"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ user }}"
|
||||||
|
group: "{{ user }}"
|
||||||
|
|
||||||
- name: Clone zsh-syntax-highlighting plugin
|
- name: Clone zsh-syntax-highlighting plugin
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting"
|
dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting"
|
||||||
update: no
|
update: yes
|
||||||
|
|
||||||
- name: Clone zsh-autosuggestions plugin
|
- name: Clone zsh-autosuggestions plugin
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/zsh-users/zsh-autosuggestions.git
|
repo: https://github.com/zsh-users/zsh-autosuggestions.git
|
||||||
dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions"
|
dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions"
|
||||||
update: no
|
update: yes
|
||||||
|
|
||||||
- name: Clone zsh-history-substring-search plugin
|
- name: Clone zsh-history-substring-search plugin
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/zsh-users/zsh-history-substring-search.git
|
repo: https://github.com/zsh-users/zsh-history-substring-search.git
|
||||||
dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search"
|
dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search"
|
||||||
update: no
|
update: yes
|
||||||
|
|
||||||
- name: Clone zsh-you-should-use plugin
|
- name: Clone you-should-use plugin
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/MichaelAquilina/zsh-you-should-use.git
|
repo: https://github.com/MichaelAquilina/zsh-you-should-use.git
|
||||||
dest: "{{ zsh_custom }}/plugins/you-should-use"
|
dest: "{{ zsh_custom }}/plugins/you-should-use"
|
||||||
update: no
|
update: yes
|
||||||
|
|
||||||
- name: Ensure .local/bin directory exists
|
- name: Ensure .local/bin directory exists
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue