refactor: split shell, editor tweaks
This commit is contained in:
parent
99a3500d9d
commit
ec3765ce5c
8 changed files with 15 additions and 13 deletions
3
home.yml
3
home.yml
|
@ -3,5 +3,6 @@
|
|||
hosts: localhost
|
||||
roles:
|
||||
- system-packages
|
||||
- managed-blocks
|
||||
- shell-tweaks
|
||||
- editor-tweaks
|
||||
- tool-config
|
||||
|
|
6
roles/editor-tweaks/tasks/main.yml
Normal file
6
roles/editor-tweaks/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Add nvim managed block
|
||||
blockinfile:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nvim/init.vim"
|
||||
marker: "\" Marc's env managed block - {mark}"
|
||||
block: "{{ lookup('ansible.builtin.file', 'files/extras.vim') }}"
|
|
@ -1,14 +1,16 @@
|
|||
---
|
||||
- name: Install OMZsh
|
||||
shell: |
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
args:
|
||||
creates: "{{ lookup('ansible.builtin.env', 'HOME') }}/.oh-my-zsh"
|
||||
- name: Install gh CLI extensions (gh-dash)
|
||||
command: gh extension install dlvhdr/gh-dash
|
||||
- name: Add zsh managed block
|
||||
blockinfile:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
||||
marker: "# Marc's env managed block - {mark}"
|
||||
block: "{{ lookup('ansible.builtin.file', 'files/shell_extras') }}"
|
||||
- name: Add nvim managed block
|
||||
blockinfile:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nvim/init.vim"
|
||||
marker: "\" Marc's env managed block - {mark}"
|
||||
block: "{{ lookup('ansible.builtin.file', 'files/extras.vim') }}"
|
||||
- name: Add starship managed block
|
||||
blockinfile:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/starship.toml"
|
|
@ -9,18 +9,11 @@
|
|||
pkg:
|
||||
- zsh
|
||||
- tmux
|
||||
- name: Install OMZsh
|
||||
shell: |
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
args:
|
||||
creates: "{{ lookup('ansible.builtin.env', 'HOME') }}/.oh-my-zsh"
|
||||
- name: Install CLI tooling
|
||||
apt:
|
||||
pkg:
|
||||
- shellcheck
|
||||
- gh
|
||||
- name: Install gh CLI extensions (gh-dash)
|
||||
command: gh extension install dlvhdr/gh-dash
|
||||
- name: Install DB-related tooling
|
||||
apt:
|
||||
pkg:
|
||||
|
|
Loading…
Reference in a new issue