mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2025-02-16 12:38:28 +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.
|
# Custom Terminal theme.
|
||||||
# TODO: Idempotence, and set it as the default.
|
- name: Get current Terminal profile.
|
||||||
# - name: Add Terminal settings.
|
shell: defaults read com.apple.terminal 'Default Window Settings'
|
||||||
# shell: open templates/terminal/JJG-Term.terminal
|
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 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_repo_local_destination: ~/Dropbox/Development/GitHub/dotfiles
|
||||||
dotfiles_files:
|
dotfiles_files:
|
||||||
- .bash_profile
|
- .bash_profile
|
||||||
|
- .gitconfig
|
||||||
- .gitignore
|
- .gitignore
|
||||||
- .inputrc
|
- .inputrc
|
||||||
- .osx
|
- .osx
|
||||||
|
|
Loading…
Add table
Reference in a new issue