diff options
author | David Phillips <david@sighup.nz> | 2017-04-20 18:03:53 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-04-20 18:03:53 +1200 |
commit | f8f974f175f964a6f147e72299a1898c50bfce50 (patch) | |
tree | 2c0a95c2372d1adb58ba77ee0d989fc5fa27a019 /bashrc | |
parent | 61ddee05adf0934cd5e723f9941d39e15070cbac (diff) | |
download | dotfiles-f8f974f175f964a6f147e72299a1898c50bfce50.tar.xz |
Make currency more extensible
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |