Show the right path at the end of cdir
- ID
f145718- date
2022-04-08 22:15:16+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
3101fbb- message
Show the right path at the end of cdir- changed files
1 file, 2 additions, 1 deletion
Changed files
cdir (1716) → cdir (1718)
diff --git a/cdir b/cdir
index 57de319..5428b76 100755
--- a/cdir
+++ b/cdir
@@ -59,7 +59,8 @@ if __name__ == "__main__":
for prefix, count in reversed(prefixes.most_common()):
print("%7d\t%s" % (count, prefix))
- home_display = os.path.abspath(".").replace(os.environ["HOME"], "~")
+ home_display = os.path.abspath(root
+).replace(os.environ["HOME"], "~")
print("-------")
print("%7d\t%s" % (sum(prefixes.values()), home_display))