mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-25 05:10:19 +00:00
Add custom Terminal profile to setup.
This commit is contained in:
parent
1955771218
commit
3b2e1a94cf
6 changed files with 20 additions and 9 deletions
|
@ -1,12 +1,22 @@
|
|||
---
|
||||
# Preferences.
|
||||
# TODO: Idempotence, and set it as the default.
|
||||
# - name: Add Terminal settings.
|
||||
# shell: open templates/terminal/JJG-Term.terminal
|
||||
# Custom Terminal theme.
|
||||
- name: Get current Terminal profile.
|
||||
shell: defaults read com.apple.terminal 'Default Window Settings'
|
||||
register: terminal_theme
|
||||
changed_when: false
|
||||
|
||||
- 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"
|
||||
|
||||
# TODO: Configure Sublime Text (see templates/sublime/*).
|
||||
|
||||
# TODO: Configure git (should this be in my .osx file, though?).
|
||||
# git config --global color.ui true
|
||||
# git config --global user.name "Jeff Geerling"
|
||||
# git config --global user.email "geerlingguy@mac.com"
|
||||
|
|
|
@ -5,6 +5,7 @@ dotfiles_repo: https://github.com/geerlingguy/dotfiles.git
|
|||
dotfiles_repo_local_destination: ~/Dropbox/Development/GitHub/dotfiles
|
||||
dotfiles_files:
|
||||
- .bash_profile
|
||||
- .gitconfig
|
||||
- .gitignore
|
||||
- .inputrc
|
||||
- .osx
|
||||
|
|
Loading…
Reference in a new issue