Feat: Add fishshell config files
This commit is contained in:
@@ -53,6 +53,37 @@
|
||||
when: prompt == 'zsh'
|
||||
|
||||
# Fish config
|
||||
- name: Create fish config directory
|
||||
file:
|
||||
dest: /home/{{ item.username }}/.config/fish/
|
||||
state: directory
|
||||
with_items: "{{ me }}"
|
||||
when: prompt == 'fish'
|
||||
|
||||
- name: Copy config.fish
|
||||
template:
|
||||
src: files/dotfiles/config.fish
|
||||
dest: /home/{{ item.username }}/.config/fish/
|
||||
owner: "{{ item.username }}"
|
||||
group: "{{ item.group }}"
|
||||
with_items: "{{ me }}"
|
||||
when: prompt == 'fish'
|
||||
register: fishconfig
|
||||
|
||||
- name: Copy fisher plugin list
|
||||
template:
|
||||
src: files/dotfiles/fishfile
|
||||
dest: /home/{{ item.username }}/.config/fish/
|
||||
owner: "{{ item.username }}"
|
||||
group: "{{ item.group }}"
|
||||
with_items: "{{ me }}"
|
||||
when: prompt == 'fish'
|
||||
register: fishplugin
|
||||
|
||||
- name: Run fisher update
|
||||
shell: fisher
|
||||
become_user: "{{ me }}"
|
||||
when: fishconfig.changed or fishplugin.changed
|
||||
|
||||
# Vim config
|
||||
- name: Copy .vim/
|
||||
|
Reference in New Issue
Block a user