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

25 lines
558 B
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 --offline --noninteractive
2017-01-14 23:09:11 +00:00
- cwd: {{ grains.homedir }}/oh-my-fish
- runas: {{ grains.user }}
2017-01-15 01:10:12 +00:00
- unless: fish -c "test -d \"$OMF_PATH\""
2017-01-15 00:30:54 +00:00
install-bira:
cmd.run:
- name: fish -c "omf install bira"
2017-01-15 00:30:54 +00:00
- runas: {{ grains.user }}