From 331fe4a838955e7915c8aff83d726496f832e123 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Thu, 7 Jan 2021 12:04:19 +0100 Subject: [PATCH] config/shell: small config improvements --- .config/shell/arch | 2 +- .config/shell/functions | 2 +- .config/zsh/.p10k.zsh | 2 +- .zprofile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/shell/arch b/.config/shell/arch index 8a396ff..a3365ec 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -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}") diff --git a/.config/shell/functions b/.config/shell/functions index 763f830..ba3092b 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -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) diff --git a/.config/zsh/.p10k.zsh b/.config/zsh/.p10k.zsh index 9474c20..194d4ab 100644 --- a/.config/zsh/.p10k.zsh +++ b/.config/zsh/.p10k.zsh @@ -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 diff --git a/.zprofile b/.zprofile index 089290e..b77116d 100644 --- a/.zprofile +++ b/.zprofile @@ -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