2017-01-14 23:09:11 +00:00
|
|
|
fish:
|
|
|
|
pkg.installed:
|
|
|
|
- name: fish
|
|
|
|
|
|
|
|
oh-my-fish:
|
|
|
|
git.latest:
|
|
|
|
- name: https://github.com/oh-my-fish/oh-my-fish
|
|
|
|
- target: {{ grains.homedir }}/oh-my-fish
|
|
|
|
- user: {{ grains.user }}
|
|
|
|
|
2017-01-14 23:50:38 +00:00
|
|
|
{{ grains.user }}:
|
|
|
|
user.present:
|
|
|
|
- shell: /usr/bin/fish
|
|
|
|
|
2017-01-14 23:09:11 +00:00
|
|
|
install-oh-my-fish:
|
|
|
|
cmd.run:
|
2017-03-04 04:21:20 +00:00
|
|
|
- name: bin/install --noninteractive --offline
|
2017-01-14 23:09:11 +00:00
|
|
|
- cwd: {{ grains.homedir }}/oh-my-fish
|
2017-01-14 23:57:20 +00:00
|
|
|
- runas: {{ grains.user }}
|
2017-01-15 01:11:57 +00:00
|
|
|
- unless: test -d {{ grains.homedir }}/.local/share/omf
|
2017-01-15 00:30:54 +00:00
|
|
|
|
2017-03-04 03:25:42 +00:00
|
|
|
create-oh-my-fish-config-directory:
|
|
|
|
file.directory:
|
|
|
|
- name: {{ grains.homedir }}/.config/omf
|
|
|
|
- user: {{ grains.user }}
|
|
|
|
- group: {{ grains.group }}
|
2017-03-04 04:39:29 +00:00
|
|
|
- makedirs: True
|
2017-03-04 03:25:42 +00:00
|
|
|
- force: True
|
|
|
|
|
|
|
|
oh-my-fish-bundle-config:
|
2017-03-02 04:37:37 +00:00
|
|
|
file.managed:
|
|
|
|
- name: {{ grains.homedir }}/.config/omf/bundle
|
|
|
|
- source: salt:///fish/files/bundle
|
|
|
|
- user: {{ grains.user }}
|
|
|
|
- group: {{ grains.group }}
|
|
|
|
- force: True
|
|
|
|
|
|
|
|
fish-set-theme:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ grains.homedir }}/.config/omf/theme
|
|
|
|
- source: salt:///fish/files/theme
|
|
|
|
- user: {{ grains.user }}
|
|
|
|
- group: {{ grains.group }}
|
|
|
|
- force: True
|
|
|
|
|
|
|
|
install-omf-packages:
|
2017-01-15 00:30:54 +00:00
|
|
|
cmd.run:
|
2017-03-02 04:37:37 +00:00
|
|
|
- name: fish -c "omf install"
|
2017-01-16 18:51:46 +00:00
|
|
|
- runas: {{ grains.user }}
|