2014-10-03 04:07:02 +00:00
|
|
|
---
|
2015-01-04 04:17:46 +00:00
|
|
|
# Custom Terminal theme.
|
|
|
|
- name: Get current Terminal profile.
|
|
|
|
shell: defaults read com.apple.terminal 'Default Window Settings'
|
|
|
|
register: terminal_theme
|
|
|
|
changed_when: false
|
2016-06-14 20:47:03 +00:00
|
|
|
always_run: yes
|
2014-10-03 04:07:02 +00:00
|
|
|
|
2015-01-04 04:17:46 +00:00
|
|
|
- name: Ensure custom Terminal profile is added.
|
|
|
|
shell: open files/terminal/JJG-Term.terminal
|
|
|
|
changed_when: false
|
|
|
|
when: "'JJG-Term' not in terminal_theme.stdout"
|
|
|
|
|
|
|
|
# TODO: This doesn't work in Yosemite. Consider a different solution?
|
|
|
|
- name: Ensure custom Terminal profile is set as default.
|
|
|
|
shell: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- defaults write com.apple.terminal 'Default Window Settings' -string JJG-Term
|
|
|
|
- defaults write com.apple.terminal 'Startup Window Settings' -string JJG-Term
|
|
|
|
changed_when: false
|
|
|
|
when: "'JJG-Term' not in terminal_theme.stdout"
|