1
0
Fork 0

add cheat and topgrade

This commit is contained in:
cătălin 2023-08-06 16:36:02 +02:00
commit a832a46772
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
5 changed files with 71 additions and 1 deletions

View file

@ -10,3 +10,5 @@ k9smocha = "~/.config/k9s/skin.yml"
sshconfig = "~/.ssh/config" sshconfig = "~/.ssh/config"
gitconfig = "~/.gitconfig" gitconfig = "~/.gitconfig"
rofi = "~/.config/rofi" rofi = "~/.config/rofi"
topgrade = "~/.config/topgrade.toml"
cheat = "~/.config/cheat"

11
cheat/conf.yml Normal file
View file

@ -0,0 +1,11 @@
---
editor: vim
colorize: true
style: catppuccin-mocha
formatter: terminal16m
pager: less -FRX
cheatpaths:
- name: community
path: /home/catalin/.config/cheat/cheatsheets/community
tags: [ community ]
readonly: true

View file

@ -2,5 +2,6 @@ set -gx EDITOR nvim
set -gx BAT_THEME "Catppuccin-frappe" set -gx BAT_THEME "Catppuccin-frappe"
set -gx DOCKER_BUILDKIT 1 set -gx DOCKER_BUILDKIT 1
set -gx COMPOSE_DOCKER_CLI_BUILD 1 set -gx COMPOSE_DOCKER_CLI_BUILD 1
#pyenv/bin/pyenv init - | source pyenv init - | source
fish_vi_key_bindings fish_vi_key_bindings
thefuck --alias | source

View file

@ -17,6 +17,7 @@
- qalculate - qalculate
- automake - automake
- libtool - libtool
- cheat
state: present state: present
# rust install, shamelessly stolen from https://waylonwalker.com/install-rust/ # rust install, shamelessly stolen from https://waylonwalker.com/install-rust/
@ -51,7 +52,9 @@
- topgrade - topgrade
- bat - bat
- cargo-update - cargo-update
- cargo-cache
state: latest state: latest
- name: Install pipx packages - name: Install pipx packages
community.general.pipx: community.general.pipx:
name: "{{ item }}" name: "{{ item }}"
@ -63,3 +66,35 @@
- halig - halig
- pre-commit - pre-commit
- ruff - ruff
- thefuck
- name: Download cheatsheets repo
tags:
- cheat
ansible.builtin.git:
repo: https://github.com/cheat/cheatsheets.git
dest: /tmp/cheatsheets
version: master
- name: Create cheat cheatsheets directory
tags:
- cheat
ansible.builtin.file:
path: ~/.config/cheat/cheatsheets/community
state: directory
mode: '0755'
- name: Copy cheatsheets to config
tags:
- cheat
ansible.builtin.copy:
src: /tmp/cheatsheets/
dest: ~/.config/cheat/cheatsheets/community
remote_src: yes
- name: Remove temporary directory
tags:
- cheat
ansible.builtin.file:
path: /tmp/cheatsheets
state: absent

21
topgrade Normal file
View file

@ -0,0 +1,21 @@
[misc]
assume_yes = true
disable = ["system"]
#ignore_failures = ["powershell"]
pre_sudo = true
run_in_tmux = true
display_time = true
cleanup = true
[post_commands]
[commands]
Nobara = "sudo dnf update rpmfusion-nonfree-release rpmfusion-free-release fedora-repos nobara-repos --refresh && sudo dnf distro-sync --refresh && sudo dnf update --refresh"
[firmware]
upgrade = true
[flatpak]
use_sudo = true