diff --git a/.dotter/global.toml b/.dotter/global.toml index ceb3501..498527f 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -10,3 +10,5 @@ k9smocha = "~/.config/k9s/skin.yml" sshconfig = "~/.ssh/config" gitconfig = "~/.gitconfig" rofi = "~/.config/rofi" +topgrade = "~/.config/topgrade.toml" +cheat = "~/.config/cheat" diff --git a/cheat/conf.yml b/cheat/conf.yml new file mode 100644 index 0000000..e562c33 --- /dev/null +++ b/cheat/conf.yml @@ -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 diff --git a/fish/conf.d/common.fish b/fish/conf.d/common.fish index befc6ab..bbce726 100644 --- a/fish/conf.d/common.fish +++ b/fish/conf.d/common.fish @@ -2,5 +2,6 @@ set -gx EDITOR nvim set -gx BAT_THEME "Catppuccin-frappe" set -gx DOCKER_BUILDKIT 1 set -gx COMPOSE_DOCKER_CLI_BUILD 1 -#pyenv/bin/pyenv init - | source +pyenv init - | source fish_vi_key_bindings +thefuck --alias | source diff --git a/packages.yml b/packages.yml index 98cc942..76464a5 100644 --- a/packages.yml +++ b/packages.yml @@ -17,6 +17,7 @@ - qalculate - automake - libtool + - cheat state: present # rust install, shamelessly stolen from https://waylonwalker.com/install-rust/ @@ -51,7 +52,9 @@ - topgrade - bat - cargo-update + - cargo-cache state: latest + - name: Install pipx packages community.general.pipx: name: "{{ item }}" @@ -63,3 +66,35 @@ - halig - pre-commit - 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 diff --git a/topgrade b/topgrade new file mode 100644 index 0000000..8542629 --- /dev/null +++ b/topgrade @@ -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