git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/issues
diff options
context:
space:
mode:
Diffstat (limited to 'issues')
-rwxr-xr-xissues/display16
1 files changed, 16 insertions, 0 deletions
diff --git a/issues/display b/issues/display
new file mode 100755
index 0000000..a66553d
--- /dev/null
+++ b/issues/display
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+if [ -n "$1" ];then
+ FARR="$1"
+ if [ ! -e "$FARR" ];then FARR="$FARR.issue";fi
+else
+ IFS=$'\n'
+ FARR=( $(ls *.issue) )
+ unset IFS
+fi
+for i in "${FARR[@]}";do
+ IFS=$'\n'
+ FLARR=( $(cat "$i") )
+ unset IFS
+ if command -v figlet >/dev/null;then printf "%b\\n" "$i"|figlet; else printf "%b\\n" "$i";fi
+ printf "%b\\n" "${FLARR[@]}"
+done