[meta] s/osx/macos/

pull/37/head
Alpha Chen 3 years ago
parent ffa984e22e
commit 85c5f80481

@ -16,7 +16,7 @@
- hosts: os_MacOSX
roles:
- role: osx
- role: macos
tasks:
- name: install fennel
command: luarocks install fennel
@ -26,11 +26,3 @@
- dotfiles
- ruby
- zsh
- hosts: all
tasks:
- name: update git remote for dotfiles
command: git remote set-url origin git@github.com:kejadlen/dotfiles.git
args:
chdir: ~/.dotfiles

@ -8,20 +8,20 @@
- file: path=~/Library/KeyBindings state=directory
- name: Symlink Emacs-style keybindings for OS X
file:
src: ~/.dotfiles/osx/DefaultKeyBinding.dict
src: ~/.dotfiles/macos/DefaultKeyBinding.dict
dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
state: link
- file: path=~/Library/Dictionaries state=directory
- name: Install Webster's 1913 dictionary
block:
- copy:
src: ~/.dotfiles/osx/websters-1913.dictionary/
src: ~/.dotfiles/macos/websters-1913.dictionary/
dest: ~/Library/Dictionaries/websters-1913.dictionary
# This worked in earlier versions of MacOS, but not in Big Sur?
# The plist now looks like this:
#
#
# /usr/libexec/PlistBuddy -c "Print" ~/Library/Preferences/com.apple.DictionaryServices.plist
# Dict {
# DCSActiveDictionaries = Array {

@ -23,5 +23,5 @@
file: src=~/.dotfiles/bin dest=~/bin state=link
- name: symlink ~/.tmux.conf.local
file: src=~/.dotfiles/osx/.tmux.conf.local dest=~/.tmux.conf.local state=link
file: src=~/.dotfiles/macos/.tmux.conf.local dest=~/.tmux.conf.local state=link
when: ansible_distribution == "MacOSX"

@ -1,13 +1,13 @@
- name: install dockutil
homebrew: name=dockutil state=present
- command: /usr/local/bin/dockutil --list
- command: dockutil --list
register: dockutil_result
- name: remove all Dock icons
command: /usr/local/bin/dockutil --remove all
command: dockutil --remove all
when: not (dockutil_result.stdout_lines | length == 1 and dockutil_result.stdout is search("^Downloads"))
- name: add ~/Downloads to the Dock
command: /usr/local/bin/dockutil --add ~/Downloads
command: dockutil --add ~/Downloads
--view list
--display stack
--sort datemodified

@ -4,14 +4,14 @@
- file: path=~/Library/KeyBindings state=directory
- name: Symlink Emacs-style keybindings for OS X
file:
src: ~/.dotfiles/osx/DefaultKeyBinding.dict
src: ~/.dotfiles/macos/DefaultKeyBinding.dict
dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
state: link
- file: path=~/Library/Colors state=directory
- name: symlink OS X colors palettes
file: src={{ item }} dest=~/Library/Colors/{{ item | basename }} state=link
with_fileglob: ~/.dotfiles/osx/Colors/*
with_fileglob: ~/.dotfiles/macos/Colors/*
- name: disable gamed
command: launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist
Loading…
Cancel
Save