From 2a0ef9f19891906d5ea3d4eac2d85fda68a84f3f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 2 Oct 2017 10:51:44 -0300 Subject: Status: replace /mnt/crypt/home/USER with shorthand --- status | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/status b/status index e042968..9f364f3 100755 --- a/status +++ b/status @@ -76,9 +76,14 @@ function status_run { fi # Update your mrconfig and check all registered repositories - # Pipe through cat so we don't have to deal with mr's dynamic output weirdness if which mr &> /dev/null; then - mrconfig-updater && mr -m status | cat + # Pipe through cat so we don't have to deal with mr's dynamic output weirdness + #mrconfig-updater && mr -m status | cat + + # Replace eventual "/mnt/crypt/home/$USER" with "~/" from output + # Piping through sed also handles mr's dynamic output weirdness + #mrconfig-updater && mr -m status | sed -e 's|/mnt/crypt/home/[a-Z]*/|~/|' + mrconfig-updater && mr -m status | sed -e "s|/mnt/crypt/home/$USER/|~/|" fi # Check your TODO lists -- cgit v1.2.3