Skip to content

Commit ebb0550

Browse files
feature/regular changes and fixes (#30)
* change vim theme, working through ~/.profile issues in bootstrap * mac updates
1 parent 4444ec4 commit ebb0550

File tree

9 files changed

+64
-24
lines changed

9 files changed

+64
-24
lines changed

roles/bootstrap/tasks/darwin.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@
5454
- name: add homebrew binaries to path
5555
copy:
5656
dest: "/Users/{{ ansible_user_id }}/.profile"
57-
content: PATH=$PATH:/usr/local/homebrew/bin
57+
content: export PATH=$PATH:/usr/local/homebrew/bin
5858

5959
- name: update homebrew
6060
homebrew:
6161
update_homebrew: yes
62-
upgrade_all: yes
6362

6463
- name: install jq
6564
homebrew:

roles/git/tasks/darwin.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@
1515
homebrew:
1616
name: pre-commit
1717
state: latest
18+
19+
# Manages HTTPS-based credentials (required for many SSO orgs)
20+
- name: install microsoft's git-credential-manager-core
21+
block:
22+
- name: tap microsoft git homebrew
23+
homebrew_tap:
24+
name: microsoft/git
25+
26+
- name: install cask
27+
homebrew_cask:
28+
name: git-credential-manager-core

roles/git/templates/gitconfig.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
helper = manager
44
useHttpPath = true
55
{% endif %}
6+
{% if ansible_system == "Darwin" %}
7+
[credential]
8+
helper = manager-core
9+
useHttpPath = true
10+
{% endif %}
611
[user]
712
name = {{ git_user }}
813
email = {{ git_email }}

roles/misc/tasks/darwin.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
name: kubernetes-cli
2323
state: latest
2424

25-
- name: install k9s
26-
homebrew:
27-
name: derailed/k9s/k9s
28-
state: latest
25+
#- name: install k9s
26+
# homebrew:
27+
# name: derailed/k9s/k9s
28+
# state: latest
2929

3030
- name: install kubectx
3131
homebrew:
@@ -50,4 +50,4 @@
5050
lineinfile:
5151
dest: "~/.zshrc"
5252
line : alias privs=/Applications/Privileges.app/Contents/Resources/PrivilegesCLI
53-
when: privs_install_check.rc == 1
53+
when: privs_install_check.rc == 0

roles/python/tasks/darwin.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
---
2-
- name: install pyenv
3-
homebrew:
4-
name: pyenv
5-
state: latest
6-
7-
- name: shim pyenv into ~/.profile
8-
lineinfile:
9-
path: "/Users/{{ ansible_user_id }}/.profile"
10-
line: "export PATH=${PATH}:$(pyenv root)/shims"
11-
regexp: "^export PATH=${PATH}"
12-
13-
- name: Add pyenv to .profile
14-
lineinfile:
15-
dest: "/Users/{{ ansible_user_id }}/.profile"
16-
line: 'eval "$(pyenv init -)"'
2+
#- name: shim pyenv into ~/.profile
3+
# lineinfile:
4+
# path: "/Users/{{ ansible_user_id }}/.profile"
5+
# line: "export PATH=${PATH}:$(pyenv root)/shims"
6+
# regexp: "^export PATH=${PATH}"
7+
#
8+
#- name: Add pyenv to .profile
9+
# lineinfile:
10+
# dest: "/Users/{{ ansible_user_id }}/.profile"
11+
# line: 'eval "$(pyenv init -)"'
1712

1813
# NOTE: CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.7.3
1914
# If you're getting compilation errors caused by xcode cli tools

roles/vim/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,8 @@
7272
repo: https://github.com/inkarkat/vim-ShowTrailingWhitespace
7373
dest: ~/.vim/bundle/vim-ShowTrailingWhitespace
7474
version: "stable"
75+
76+
- name: clone colorscheme to ~/.vim/bundle/
77+
git:
78+
repo: https://github.com/morhetz/gruvbox.git
79+
dest: ~/.vim/bundle/gruvbox

roles/vim/templates/vimrc.j2

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ filetype plugin indent on
55

66
" editor settings
77
set nu
8-
set ts=2 sts=2 sw=2 expandtab
8+
set ts=2 sts=2 sw=2 expandtab
99
autocmd vimenter * NERDTree
1010
autocmd StdinReadPre * let s:std_in=1
1111
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
@@ -21,6 +21,21 @@ endfunction
2121
call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')
2222
let g:NERDTreeNodeDelimiter = "\u00a0"
2323

24+
:set guicursor=n-v-c:blinkon0-block-Cursor/lCursor
25+
26+
" Use a line cursor within insert mode and a block cursor everywhere else.
27+
"
28+
" Reference chart of values:
29+
" Ps = 0 -> blinking block.
30+
" Ps = 1 -> blinking block (default).
31+
" Ps = 2 -> steady block.
32+
" Ps = 3 -> blinking underline.
33+
" Ps = 4 -> steady underline.
34+
" Ps = 5 -> blinking bar (xterm).
35+
" Ps = 6 -> steady bar (xterm).
36+
let &t_SI = "\e[6 q"
37+
let &t_EI = "\e[2 q"
38+
2439
" filetype settings
2540

2641
" plugins
@@ -62,3 +77,6 @@ highlight ShowTrailingWhitespace ctermbg=Red guibg=Red
6277
" WSL/Windows keybinding overrides
6378
:imap <silent> <C-v> <C-ALT-v>
6479
{% endif %}
80+
81+
" gruvbox
82+
autocmd vimenter * ++nested colorscheme gruvbox

roles/zsh/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
line: 'source ~/.profile'
2929
state: present
3030

31+
- name: Download theme
32+
get_url:
33+
url: "{{ zsh_theme_url }}"
34+
dest: "{{ local_omz_repo }}/themes/"
35+
when: zsh_theme_url != ""
36+
3137
- name: Set zsh theme
3238
lineinfile:
3339
dest: "~/.zshrc"

roles/zsh/vars/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
omz_repo: 'https://github.com/robbyrussell/oh-my-zsh.git'
33
local_omz_repo: "~/.oh-my-zsh"
4-
zsh_theme: 'agnoster'
4+
zsh_theme: 'minimal_improved'
5+
zsh_theme_url: 'https://raw.githubusercontent.com/gdsrosa/minimal_improved/master/minimal_improved.zsh-theme'

0 commit comments

Comments
 (0)