mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-07 16:08:43 +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
|
||||
force: true
|
||||
|
||||
# TODO: set server keys
|
||||
# TODO: set server keys in some way
|
||||
- name: Link tmate configuration
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.tmate.conf'
|
||||
|
|
@ -33,21 +33,6 @@
|
|||
state: link
|
||||
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
|
||||
- name: Get programs list to check fish presence
|
||||
ansible.builtin.package_facts:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
- name: Link scripts directory
|
||||
- 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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
- name: Install cli tools
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
# shell utils
|
||||
- just
|
||||
# shells & shell utils
|
||||
- bash
|
||||
- fish
|
||||
- trash-cli
|
||||
- just
|
||||
- jsonnet
|
||||
|
||||
# edit utils
|
||||
|
|
@ -15,9 +17,15 @@
|
|||
|
||||
# git
|
||||
- git-delta
|
||||
- difftastic
|
||||
- git
|
||||
|
||||
# other
|
||||
- ansible
|
||||
|
||||
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
|
||||
- --no-anchored
|
||||
- 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