1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-23 15:32:01 +01:00
eoli3n-dotfiles/roles/fish/tasks/main.yml

55 lines
1.2 KiB
YAML

---
- name: Install fish
package:
name: fish
state: present
ignore_errors: True
become: yes
- name: Install oh-my-fish
shell: curl -L https://get.oh-my.fish | fish
args:
creates: ~/.config/fish/conf.d/omf.fish
- name: Install pureprompt plugin
shell: |
omf install pure
ln -s $OMF_PATH/themes/pure/conf.d/pure.fish ~/.config/fish/conf.d/pure.fish
ln -s $OMF_PATH/themes/pure/conf.d/_pure_init.fish ~/.config/fish/conf.d/pure_init.fish
args:
executable: /usr/bin/fish
creates: ~/.config/fish/conf.d/pure.fish
- name: check git plugin install
shell: grep git ~/.config/fish/fish_variables
register: gitcheck
ignore_errors: True
changed_when: false
- name: Install git plugin
shell: omf install https://github.com/jhillyerd/plugin-git
args:
executable: /usr/bin/fish
when: gitcheck is failed
- name: Globale fish configuration
copy:
src: config.fish
dest: ~/.config/fish/
backup: yes
- name: Laptops fish configuration
copy:
src: laptop.fish
dest: ~/.config/fish/conf.d/
backup: yes
when: "'laptop' in {{ group_names }}"
- name: copy aliases
synchronize:
src: files/functions/
dest: ~/.config/fish/
- debug:
msg: "Do not forget to 'chsh /usr/bin/fish'"