config/shell: small config improvements
This commit is contained in:
parent
d725b6bd2e
commit
331fe4a838
|
@ -12,7 +12,7 @@ alias yayr='noglob yay -R'
|
|||
yzf() {
|
||||
query=$(test "$1" = "Q" && echo " -l")
|
||||
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() {
|
||||
pkg=$(yzf S l -q "$1" "${@:2}")
|
||||
|
|
|
@ -11,7 +11,7 @@ alias info='info --vi-keys'
|
|||
|
||||
xdh="$XDG_DATA_HOME"
|
||||
xch="$XDG_CONFIG_HOME"
|
||||
da=$(cd $DATA/_* && pwd)
|
||||
da=$(cd $DATA/_* && pwd) 2>/dev/null
|
||||
d1=$(cd $DATA/1* && pwd)
|
||||
d2=$(cd $DATA/2* && pwd)
|
||||
d3=$(cd $DATA/3* && pwd)
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
# swap # used swap
|
||||
todo # todo items (https://github.com/todotxt/todo.txt-cli)
|
||||
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
||||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||
#taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||
time # current time
|
||||
# =========================[ Line #2 ]=========================
|
||||
newline
|
||||
|
|
|
@ -28,7 +28,7 @@ export HISTFILE="$XDG_DATA_HOME/zsh/history"
|
|||
# environment
|
||||
export EDITOR=/usr/bin/nvim
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
export LESS=-R
|
||||
export LESS='--RAW-CONTROL-CHARS --ignore-case'
|
||||
# red stderr
|
||||
test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
# software config
|
||||
|
|
Loading…
Reference in New Issue