dotfiles

configurations and scripts
git clone https://riazj.com/git/dotfiles
Log | Files | Refs | LICENSE

commit 2a5336a4d42377f4e72207b2e05ab92a7177496f
parent 841d459bf1b9797cbb85d2cee242d3942e635177
Author: Riaz <riaz@riazj.com>
Date:   Thu, 17 Jul 2025 07:06:06 -0700

Remove useless use of head

Diffstat:
M.local/bin/tldr | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/tldr b/.local/bin/tldr @@ -3,7 +3,7 @@ PAGES="$XDG_CACHE_HOME/tldr/pages" [ $# -eq 0 ] && { echo "usage: tldr command [platform]"; exit; } -[ -d "$PAGES/$2" ] && page="$(find "$PAGES/$2" -name "$1.md" | head -1)" +[ -d "$PAGES/$2" ] && page="$(find "$PAGES/$2" -name "$1.md" -print -quit)" [ -f "$page" ] && { cat "$page"; exit; } printf "tldr: %s not found\n" "$1"; exit 1