pinch-dotfiles/salty/base/fish/init.sls

50 lines
1.2 KiB
Text
Raw Normal View History

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 }}
{{ grains.user }}:
user.present:
- shell: /usr/bin/fish
2017-01-14 23:09:11 +00:00
install-oh-my-fish:
cmd.run:
- name: bin/install --noninteractive --offline
2017-01-14 23:09:11 +00:00
- cwd: {{ grains.homedir }}/oh-my-fish
- runas: {{ grains.user }}
- unless: test -d {{ grains.homedir }}/.local/share/omf
2017-01-15 00:30:54 +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
- force: True
oh-my-fish-bundle-config:
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:
- name: fish -c "omf install"
2017-01-16 18:51:46 +00:00
- runas: {{ grains.user }}