summaryrefslogtreecommitdiff
path: root/me
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-06-15 10:41:20 -0700
committerBen Sima <ben@bsima.me>2018-06-15 10:41:20 -0700
commit4ffe8a44461c9036c0a5e5cb5fdec7e61b584123 (patch)
tree0ff389ad2fa1387ca6be77ce965aed112d1d416c /me
parentf0e3298e525a2d9688a11b5320845c89d3c3cf1f (diff)
Print a better dirname
Diffstat (limited to 'me')
-rwxr-xr-xme3
1 files changed, 2 insertions, 1 deletions
diff --git a/me b/me
index 1d7c3a9..46e8215 100755
--- a/me
+++ b/me
@@ -8,8 +8,9 @@ for d in ~/config/ ~/org/ ~/web/ ~/bin/ ~/.password-store/ ~/me/
do
cd "${d}"
+ dirname=${d/\/home\/ben/\~}
status=$(unbuffer git status -sb | tr -d '#')
- printf "%-20s: %s\n\n" "${d}" "${status}"
+ printf "%-20s: %s\n\n" "${dirname}" "${status}"
done
cd "${cur}"