2019-01-20 17:09:09 +00:00
|
|
|
- name: 'Shell: Add iTerm2 configuration'
|
2019-01-20 10:46:00 +00:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- iterm2
|
2019-01-20 17:09:09 +00:00
|
|
|
- shell
|
2019-01-20 17:48:18 +00:00
|
|
|
copy:
|
2019-01-20 16:16:17 +00:00
|
|
|
src: "iterm2/{{ item }}"
|
2019-01-20 10:46:00 +00:00
|
|
|
dest: '~/.iterm2'
|
|
|
|
mode: '0600'
|
2019-01-20 16:16:17 +00:00
|
|
|
loop: ['com.googlecode.iterm2.plist', 'hybrid.itermcolors']
|
|
|
|
|
2019-01-20 17:09:09 +00:00
|
|
|
- name: 'Shell: iTerm2 Bash integration'
|
2019-01-20 16:16:17 +00:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- iterm2
|
2019-01-20 17:09:09 +00:00
|
|
|
- shell
|
2019-01-20 16:16:17 +00:00
|
|
|
copy:
|
|
|
|
src: 'iterm2/shell_integration.bash'
|
|
|
|
dest: '~/.bashrc.d'
|
|
|
|
mode: '0400'
|
|
|
|
|
|
|
|
- name: 'Shell: ps alias'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- shell
|
|
|
|
copy:
|
|
|
|
content: |
|
|
|
|
[[ -x /bin/ps && -x $(which pstree 2>/dev/null) && $(uname -s) = 'Darwin' ]] && function ps() { if [[ ${1} =~ 'f' ]]; then pstree; else /bin/ps ${@}; fi }
|
|
|
|
dest: '~/.bashrc.d/alias.ps'
|
|
|
|
mode: '0400'
|
|
|
|
|
|
|
|
- name: 'Shell: GNU overrides'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- shell
|
|
|
|
copy:
|
|
|
|
content: |
|
|
|
|
[[ -x $(which gdu 2>/dev/null) ]] && function du() { gdu ${@}; } && export -f du
|
|
|
|
[[ -x $(which gsort 2>/dev/null) ]] && function sort() { gsort ${@}; } && export -f sort
|
|
|
|
dest: '~/.bashrc.d/alias.gnu'
|
|
|
|
mode: '0400'
|
2019-01-20 10:46:00 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Preferences'
|
2017-11-29 15:24:38 +00:00
|
|
|
tags:
|
|
|
|
- config
|
2019-01-20 16:16:17 +00:00
|
|
|
- os
|
|
|
|
- osx
|
|
|
|
block:
|
|
|
|
- name: 'OS X: Dock orientation'
|
|
|
|
osx_defaults:
|
|
|
|
domain: com.apple.dock
|
|
|
|
type: string
|
|
|
|
key: orientation
|
|
|
|
value: right
|
2017-11-29 15:24:38 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Dock size'
|
|
|
|
osx_defaults:
|
|
|
|
domain: com.apple.dock
|
|
|
|
type: float
|
|
|
|
key: tilesize
|
|
|
|
value: '35'
|
2017-11-29 15:24:38 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Smart quotes off'
|
|
|
|
osx_defaults:
|
|
|
|
domain: NSGlobalDomain
|
|
|
|
type: int
|
|
|
|
key: NSAutomaticQuoteSubstitutionEnabled
|
|
|
|
value: '0'
|
2017-11-30 13:32:20 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Smart dashes off'
|
|
|
|
osx_defaults:
|
|
|
|
domain: NSGlobalDomain
|
|
|
|
type: int
|
|
|
|
key: NSAutomaticDashSubstitutionEnabled
|
|
|
|
value: '0'
|
2017-11-30 20:41:26 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Spell correction off'
|
|
|
|
osx_defaults:
|
|
|
|
domain: NSGlobalDomain
|
|
|
|
type: int
|
|
|
|
key: NSAutomaticSpellingCorrectionEnabled
|
|
|
|
value: '0'
|
2017-11-30 20:41:26 +00:00
|
|
|
|
2019-01-20 16:16:17 +00:00
|
|
|
- name: 'OS X: Web spell correction off'
|
|
|
|
osx_defaults:
|
|
|
|
domain: NSGlobalDomain
|
|
|
|
type: int
|
|
|
|
key: WebAutomaticSpellingCorrectionEnabled
|
|
|
|
value: '0'
|
|
|
|
always:
|
|
|
|
- name: 'OS X: Clear preferences cache'
|
|
|
|
command: 'pkill -u ${USER} cfprefsd'
|