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

20 lines
450 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-14 23:09:11 +00:00
- unless: test -d "$OMF_PATH"