From f7f7f2bda51713395362c9f666844e1e020990bd Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 21 Mar 2024 15:50:09 +0300 Subject: [PATCH] upd(bash.showtips): show tips excluding trailing newline --- home/user/.config/bash/functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index 5136605..b561769 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -205,7 +205,12 @@ showtips() { git init "$TIPS_DIR" fi - cat "$TIPS_DIR"/* 2>/dev/null + local content + for filename in "$TIPS_DIR"/* + do + content="$(cat "$filename")" + echo "$content" + done return 0 }