aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcollector4
1 files changed, 3 insertions, 1 deletions
diff --git a/collector b/collector
index 5967e52..570d13c 100755
--- a/collector
+++ b/collector
@@ -30,7 +30,9 @@ elif [ "$ACTION" == "add" ]; then
echo "* $*" >> "$COLLECTOR_FILE"
elif [ "$ACTION" == "list" ]; then
if grep -q -e "^ *\* " "$COLLECTOR_FILE"; then
- echo "Collected items at $COLLECTOR_FILE:"
+ COLLECTOR_NAME="`echo $COLLECTOR_FILE | sed -e "s|$HOME|~|"`"
+
+ echo "Collected items at $COLLECTOR_NAME:"
echo ""
grep -e "^ *\* " "$COLLECTOR_FILE"
echo ""