summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-20 18:03:53 +1200
committerDavid Phillips <david@sighup.nz>2017-04-20 18:03:53 +1200
commitf8f974f175f964a6f147e72299a1898c50bfce50 (patch)
tree2c0a95c2372d1adb58ba77ee0d989fc5fa27a019 /bashrc
parent61ddee05adf0934cd5e723f9941d39e15070cbac (diff)
downloaddotfiles-f8f974f175f964a6f147e72299a1898c50bfce50.tar.xz
Make currency more extensible
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index 3749f15..fb322db 100644
--- a/bashrc
+++ b/bashrc
@@ -48,5 +48,7 @@ if [ -f ~/.cache/weather/forecast ]; then
fi
[ -d ~/Maildir/new/ ] && [ "$(ls ~/Maildir/new/)" ] && echo 'New mail'
-[ -f ~/.cache/XAGNZD ] && echo "$(cat ~/.cache/XAGNZD) (at $(date +"%a %d %H:%M" --date=@$(stat -c %Y ~/.cache/XAGNZD)))"
-[ -f ~/.cache/XAUNZD ] && echo "$(cat ~/.cache/XAUNZD) (at $(date +"%a %d %H:%M" --date=@$(stat -c %Y ~/.cache/XAUNZD)))"
+
+[ -z "$(ls -A ~/.cache/currency)" ] || for c in ~/.cache/currency/* ; do
+ echo "$(cat $c) (at $(date +"%a %d %H:%M" --date=@$(stat -c %Y $c)))"
+done