mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-08 08:28:44 +00:00
<codebook> spellcheck lsp, <difftastic> diff with code syntax understanding, <trash-cli> trash cli, files autodelete in 30 days setup
This commit is contained in:
parent
6561d54f45
commit
19b706da4c
4 changed files with 42 additions and 19 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
# TODO: set server keys
|
# TODO: set server keys in some way
|
||||||
- name: Link tmate configuration
|
- name: Link tmate configuration
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
src: '{{ role_path }}/files/.tmate.conf'
|
src: '{{ role_path }}/files/.tmate.conf'
|
||||||
|
|
@ -33,21 +33,6 @@
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
# additional files
|
|
||||||
- name: Link scripts
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: '{{ role_path }}/files/.bin'
|
|
||||||
dest: '{{ ansible_env.HOME }}/.bin'
|
|
||||||
state: link
|
|
||||||
force: true
|
|
||||||
|
|
||||||
- name: Link templates
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: '{{ role_path }}/files/.templates'
|
|
||||||
dest: '{{ ansible_env.HOME }}/.templates'
|
|
||||||
state: link
|
|
||||||
force: true
|
|
||||||
|
|
||||||
# path update
|
# path update
|
||||||
- name: Get programs list to check fish presence
|
- name: Get programs list to check fish presence
|
||||||
ansible.builtin.package_facts:
|
ansible.builtin.package_facts:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
- name: Link scripts directory
|
- name: Link scripts
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
src: '{{ role_path }}/files/.bin'
|
src: '{{ role_path }}/files/.bin'
|
||||||
dest: '{{ ansible_env.HOME }}/.bin'
|
dest: '{{ ansible_env.HOME }}/.bin'
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
|
- name: Link templates
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: '{{ role_path }}/files/.templates'
|
||||||
|
dest: '{{ ansible_env.HOME }}/.templates'
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
- name: Install cli tools
|
- name: Install cli tools
|
||||||
ansible.builtin.dnf5:
|
ansible.builtin.dnf5:
|
||||||
name:
|
name:
|
||||||
# shell utils
|
# shells & shell utils
|
||||||
- just
|
- bash
|
||||||
- fish
|
- fish
|
||||||
|
- trash-cli
|
||||||
|
- just
|
||||||
- jsonnet
|
- jsonnet
|
||||||
|
|
||||||
# edit utils
|
# edit utils
|
||||||
|
|
@ -15,9 +17,15 @@
|
||||||
|
|
||||||
# git
|
# git
|
||||||
- git-delta
|
- git-delta
|
||||||
|
- difftastic
|
||||||
- git
|
- git
|
||||||
|
|
||||||
|
# other
|
||||||
- ansible
|
- ansible
|
||||||
|
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: Clear trash automatically every 30 days
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: sh
|
||||||
|
stdin: '(crontab -l ; echo "@daily $(which trash-empty) 30")'
|
||||||
|
|
|
||||||
|
|
@ -39,3 +39,26 @@
|
||||||
- --strip=1
|
- --strip=1
|
||||||
- --no-anchored
|
- --no-anchored
|
||||||
- tinymist
|
- tinymist
|
||||||
|
|
||||||
|
- name: Get latest codebook (spellcheck lsp) version
|
||||||
|
community.general.github_release:
|
||||||
|
user: blopker
|
||||||
|
repo: codebook
|
||||||
|
action: latest_release
|
||||||
|
register: codebook_version
|
||||||
|
|
||||||
|
- name: "Installing codebook (spellcheck lsp) {{ codebook_version.tag }}"
|
||||||
|
become: true
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
remote_src: yes
|
||||||
|
# TODO: insert v before version ??
|
||||||
|
src: "https://github.com/blopker/codebook/releases/download/{{ codebook_version.tag }}/codebook-lsp-x86_64-unknown-linux-musl.tar.gz"
|
||||||
|
dest: "/usr/bin/"
|
||||||
|
mode: a+x
|
||||||
|
keep_newer: yes
|
||||||
|
extra_opts:
|
||||||
|
- --strip=1
|
||||||
|
- --no-anchored
|
||||||
|
- codebook-lsp
|
||||||
|
|
||||||
|
# TODO: codebook setup (add to helix config, etc.)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue