From 4dc3bfeb8406ffaa89037c78745365f1e399fc91 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 3 May 2022 11:21:33 +0200 Subject: [PATCH] config: param tweaks --- .bash_aliases | 7 ++++--- .config/espanso/match/base.yml | 15 +++++++++++++++ .config/topgrade.toml | 2 +- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index b8c560b..937c999 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -6,6 +6,9 @@ if test -f /etc/bash_completion && ! shopt -oq posix then . /etc/bash_completion fi +alias scr="sudo systemctl reload-or-restart" +difr() { diff --color=always --unified=1 --recursive "$@" | less --RAW-CONTROL-CHARS --quit-on-intr --quit-if-one-screen; } + # ls aliases export LS_OPTIONS='--human-readable --si --group-directories-first --file-type --dereference-command-line' @@ -14,9 +17,7 @@ alias ls='ls --color=auto' alias ll='ls $LS_OPTIONS -l --all' alias l='ls $LS_OPTIONS --color=always --almost-all' which bat >/dev/null || alias bat="$(which batcat >/dev/null && echo batcat || echo less -FX)" -b() { - test -d "${1:-.}" && l "$@" || bat "$@" -} +b() { test -d "${1:-.}" && l "$@" || bat "$@"; } alias v="$(which nvim >/dev/null && echo nvim || echo ${EDITOR:-vi})" # Grep aliases diff --git a/.config/espanso/match/base.yml b/.config/espanso/match/base.yml index 92bec58..266ea6c 100644 --- a/.config/espanso/match/base.yml +++ b/.config/espanso/match/base.yml @@ -138,6 +138,21 @@ matches: type: shell params: cmd: pass info/signature + - trigger: ":sigo" + replace: |- + #+ATTR_ORG: :width 200 + #+ATTR_LATEX: :width 4cm :center nil + [[file:{{signature}}]] \\ + {{name}} + vars: + - name: signature + type: match + params: + trigger: ":sign" + - name: name + type: match + params: + trigger: ":a0" - trigger: ":iban" replace: "{{output}}" vars: diff --git a/.config/topgrade.toml b/.config/topgrade.toml index 9cf6654..cd08167 100644 --- a/.config/topgrade.toml +++ b/.config/topgrade.toml @@ -64,7 +64,7 @@ arguments = "--rebase --autostash" [linux] # Arguments to pass yay when updating packages -yay_arguments = "--nodiffmenu" +yay_arguments = "--nodiffmenu --ignore android-studio --ignore clion --ignore intellij-idea-ultimate-edition --ignore intellij-idea-ultimate-edition-jre --ignore webstorm" #trizen_arguments = "--devel" #enable_tlmgr = true #emerge_sync_flags = "-q"