From 851a1e86a0c3de4bd88d80a9bba9a25cdf136344 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 1 Nov 2011 23:21:15 -0500 Subject: [PATCH] .bashrc: Fix whitespace/padding of MOTD --- .bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 6de57e8..d1576be 100644 --- a/.bashrc +++ b/.bashrc @@ -384,8 +384,10 @@ test -n "$PS1" && test -n "$INTERACTIVE" -a -n "$LOGIN" && { echo " --" - echo -n " " && uname -npsr - uptime + # Strip any leading whitespace from uname and uptime commands, + # and add a leading padding whitespace + echo -n " " && echo `uname -npsr | sed -e 's/^\s+//'` + echo -n " " && echo `uptime | sed -e 's/^\s+//'` echo " --" } -- 2.47.1