-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
terminal.yml
29 lines (26 loc) · 998 Bytes
/
terminal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# Custom Terminal theme.
- name: Get current Terminal profile.
command: defaults read com.apple.terminal 'Default Window Settings'
register: terminal_theme
changed_when: false
failed_when: false
check_mode: false
- name: Ensure custom Terminal profile is added.
copy:
src: files/terminal/JJG-Term.terminal
dest: /tmp/JJG-Term.terminal
changed_when: false
when: "'JJG-Term' not in terminal_theme.stdout"
- name: Ensure custom Terminal profile is added.
command: open /tmp/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.
command: "{{ 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"