diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-02 10:51:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-02 10:51:44 -0300 |
commit | 2a0ef9f19891906d5ea3d4eac2d85fda68a84f3f (patch) | |
tree | b98203a003e0c7fed9f673302f3b78523bd9cc8f | |
parent | 937121b0bedd302b3566581cce25f76c7df3fa2d (diff) | |
download | scripts-2a0ef9f19891906d5ea3d4eac2d85fda68a84f3f.tar.gz scripts-2a0ef9f19891906d5ea3d4eac2d85fda68a84f3f.tar.bz2 |
Status: replace /mnt/crypt/home/USER with shorthand
-rwxr-xr-x | status | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |