From f9837e219135bd857afd88f60f213ef9c8c8f61c Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sun, 15 Sep 2024 02:30:04 +0200 Subject: Initial commit --- ilhare/.current | 1 + ilhare/closed | 0 ilhare/open | 1 + ilhare/rejected | 0 new.sh | 14 ++++++++++++++ 5 files changed, 16 insertions(+) create mode 100644 ilhare/.current create mode 100644 ilhare/closed create mode 100644 ilhare/open create mode 100644 ilhare/rejected create mode 100755 new.sh diff --git a/ilhare/.current b/ilhare/.current new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/ilhare/.current @@ -0,0 +1 @@ +2 diff --git a/ilhare/closed b/ilhare/closed new file mode 100644 index 0000000..e69de29 diff --git a/ilhare/open b/ilhare/open new file mode 100644 index 0000000..08e5428 --- /dev/null +++ b/ilhare/open @@ -0,0 +1 @@ +1. Fix crash when program is opened in background before running diff --git a/ilhare/rejected b/ilhare/rejected new file mode 100644 index 0000000..e69de29 diff --git a/new.sh b/new.sh new file mode 100755 index 0000000..6fb208f --- /dev/null +++ b/new.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +test -f .current || echo -n 1 > .current + +current=$(cat .current) + +if test $# -eq 2 +then + echo "$current. $1" >> open +else + echo "$current. " >> open + vim open +fi +echo -n "$((current + 1))" > .current -- cgit v1.2.3