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
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- system-packages
|
- system-packages
|
||||||
- managed-blocks
|
- shell-tweaks
|
||||||
|
- editor-tweaks
|
||||||
- tool-config
|
- 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
|
- name: Add zsh managed block
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
||||||
marker: "# Marc's env managed block - {mark}"
|
marker: "# Marc's env managed block - {mark}"
|
||||||
block: "{{ lookup('ansible.builtin.file', 'files/shell_extras') }}"
|
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
|
- name: Add starship managed block
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/starship.toml"
|
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/starship.toml"
|
|
@ -9,18 +9,11 @@
|
||||||
pkg:
|
pkg:
|
||||||
- zsh
|
- zsh
|
||||||
- tmux
|
- 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
|
- name: Install CLI tooling
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- gh
|
- gh
|
||||||
- name: Install gh CLI extensions (gh-dash)
|
|
||||||
command: gh extension install dlvhdr/gh-dash
|
|
||||||
- name: Install DB-related tooling
|
- name: Install DB-related tooling
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
|
|
Loading…
Reference in a new issue