config/shell: small config improvements

This commit is contained in:
xerus2000 2021-01-07 12:04:19 +01:00
parent d725b6bd2e
commit 331fe4a838
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ alias yayr='noglob yay -R'
yzf() { yzf() {
query=$(test "$1" = "Q" && echo " -l") query=$(test "$1" = "Q" && echo " -l")
pos=$(test "$query" && echo 1 || echo 2) pos=$(test "$query" && echo 1 || echo 2)
yay --color always -$1$2 | sed "s/ /\t/g" | fzf --tiebreak=length --history=/var/tmp/fzf-history-yay --bind='left-click:ignore' --preview "echo {} | cut -f$pos | xargs yay --color always -$1 -i $query" "${@:3}" | cut -f$pos yay --color always -$1$2 | sed "s/ /\t/g" | fzf --multi --tiebreak=length --history=/var/tmp/fzf-history-yay --bind='left-click:ignore' --preview "echo {} | cut -f$pos | xargs yay --color always -$1 -i $query" "${@:3}" | cut -f$pos
} }
yas() { yas() {
pkg=$(yzf S l -q "$1" "${@:2}") pkg=$(yzf S l -q "$1" "${@:2}")

View File

@ -11,7 +11,7 @@ alias info='info --vi-keys'
xdh="$XDG_DATA_HOME" xdh="$XDG_DATA_HOME"
xch="$XDG_CONFIG_HOME" xch="$XDG_CONFIG_HOME"
da=$(cd $DATA/_* && pwd) da=$(cd $DATA/_* && pwd) 2>/dev/null
d1=$(cd $DATA/1* && pwd) d1=$(cd $DATA/1* && pwd)
d2=$(cd $DATA/2* && pwd) d2=$(cd $DATA/2* && pwd)
d3=$(cd $DATA/3* && pwd) d3=$(cd $DATA/3* && pwd)

View File

@ -94,7 +94,7 @@
# swap # used swap # swap # used swap
todo # todo items (https://github.com/todotxt/todo.txt-cli) todo # todo items (https://github.com/todotxt/todo.txt-cli)
timewarrior # timewarrior tracking status (https://timewarrior.net/) timewarrior # timewarrior tracking status (https://timewarrior.net/)
taskwarrior # taskwarrior task count (https://taskwarrior.org/) #taskwarrior # taskwarrior task count (https://taskwarrior.org/)
time # current time time # current time
# =========================[ Line #2 ]========================= # =========================[ Line #2 ]=========================
newline newline

View File

@ -28,7 +28,7 @@ export HISTFILE="$XDG_DATA_HOME/zsh/history"
# environment # environment
export EDITOR=/usr/bin/nvim export EDITOR=/usr/bin/nvim
export MANPAGER="sh -c 'col -bx | bat -l man -p'" export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export LESS=-R export LESS='--RAW-CONTROL-CHARS --ignore-case'
# red stderr # red stderr
test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}" test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
# software config # software config