config: param tweaks

This commit is contained in:
xeruf 2022-05-03 11:21:33 +02:00
parent 11f307c4bd
commit 4dc3bfeb84
3 changed files with 20 additions and 4 deletions

View File

@ -6,6 +6,9 @@ if test -f /etc/bash_completion && ! shopt -oq posix
then . /etc/bash_completion then . /etc/bash_completion
fi 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 # ls aliases
export LS_OPTIONS='--human-readable --si --group-directories-first --file-type --dereference-command-line' 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 ll='ls $LS_OPTIONS -l --all'
alias l='ls $LS_OPTIONS --color=always --almost-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)" which bat >/dev/null || alias bat="$(which batcat >/dev/null && echo batcat || echo less -FX)"
b() { b() { test -d "${1:-.}" && l "$@" || bat "$@"; }
test -d "${1:-.}" && l "$@" || bat "$@"
}
alias v="$(which nvim >/dev/null && echo nvim || echo ${EDITOR:-vi})" alias v="$(which nvim >/dev/null && echo nvim || echo ${EDITOR:-vi})"
# Grep aliases # Grep aliases

View File

@ -138,6 +138,21 @@ matches:
type: shell type: shell
params: params:
cmd: pass info/signature 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" - trigger: ":iban"
replace: "{{output}}" replace: "{{output}}"
vars: vars:

View File

@ -64,7 +64,7 @@ arguments = "--rebase --autostash"
[linux] [linux]
# Arguments to pass yay when updating packages # 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" #trizen_arguments = "--devel"
#enable_tlmgr = true #enable_tlmgr = true
#emerge_sync_flags = "-q" #emerge_sync_flags = "-q"