From 4f82c00060b1e5e7e96d89c568d2048f0ef2a893 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 15 Nov 2023 20:51:02 +0100 Subject: [PATCH] config: adjusting fd defaults --- .config/fd/ignore | 1 + .config/shell/functions | 2 +- README.org | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/fd/ignore b/.config/fd/ignore index 7c4b4ea..cd430f8 100644 --- a/.config/fd/ignore +++ b/.config/fd/ignore @@ -12,3 +12,4 @@ node_modules/ build/ generated/ out/ +.git/ diff --git a/.config/shell/functions b/.config/shell/functions index 578f092..44cea77 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -391,7 +391,7 @@ alias grpc='grep --color=auto --line-number --binary-files=without-match --direc alias grp='grpc --ignore-case' # Grep recursively and paginate # TODO remove some prefixes \([^ ]*/\)\? -grpr() { grp --color=always --recursive '--exclude=*.sql' $(echo $DIRS_IGNORE | sed 's|-x |--exclude-dir |g') "$@" | less -FX; } +grpr() { grp --color=always --recursive '--exclude=*.sql' $(echo $DIRS_IGNORE | sed 's|-x |--exclude-dir |g') "$@" | cut -c-$(expr $COLUMNS \* 3) | less -FX; } # Grep in shell config files grsh() { local search=$1 diff --git a/README.org b/README.org index f1b70dd..3bea887 100644 --- a/README.org +++ b/README.org @@ -67,7 +67,7 @@ and configuration for ~less~ and ~fzf~. * Package Setup (moving to [[https://github.com/xeruf/instalee][Instalee]]) By Size: : LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h -Copy list of in stalled packages: +Copy list of installed packages: : pacman -Qe | cut -d\ -f1 | xclip -selection clipboard - dotfiles :: yadm