diff options
Diffstat (limited to '')
-rwxr-xr-x | libexec/recit-add-entry | 5 | ||||
-rwxr-xr-x | libexec/recit-add-project | 5 | ||||
-rwxr-xr-x | libexec/recit-edit | 5 | ||||
-rwxr-xr-x | libexec/recit-edit-entry | 5 | ||||
-rwxr-xr-x | libexec/recit-entries | 5 | ||||
-rwxr-xr-x | libexec/recit-recsel-entries | 9 | ||||
-rwxr-xr-x | libexec/recit-recsel-projects | 9 |
7 files changed, 10 insertions, 33 deletions
diff --git a/libexec/recit-add-entry b/libexec/recit-add-entry index 93590e1..a41ae6c 100755 --- a/libexec/recit-add-entry +++ b/libexec/recit-add-entry @@ -4,10 +4,7 @@ set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) notes="" query_time="" diff --git a/libexec/recit-add-project b/libexec/recit-add-project index 2f30607..cd0dd51 100755 --- a/libexec/recit-add-project +++ b/libexec/recit-add-project @@ -3,10 +3,7 @@ # Summary: Add Project -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) name="" while getopts "n:" options; do diff --git a/libexec/recit-edit b/libexec/recit-edit index cf3fc43..7431e64 100755 --- a/libexec/recit-edit +++ b/libexec/recit-edit @@ -4,10 +4,7 @@ set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) if [[ -z ${EDITOR+x} ]]; then echo "$EDITOR is not defined please pass a message" diff --git a/libexec/recit-edit-entry b/libexec/recit-edit-entry index 47ca072..9254753 100755 --- a/libexec/recit-edit-entry +++ b/libexec/recit-edit-entry @@ -4,10 +4,7 @@ set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) uuid=$1 diff --git a/libexec/recit-entries b/libexec/recit-entries index 7fcf438..1ba63b1 100755 --- a/libexec/recit-entries +++ b/libexec/recit-entries @@ -3,11 +3,6 @@ # Summary: Display entries, optionally for a project and/or a certain time set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) - project="" query_time="" diff --git a/libexec/recit-recsel-entries b/libexec/recit-recsel-entries index 5b6070a..f2ca2f9 100755 --- a/libexec/recit-recsel-entries +++ b/libexec/recit-recsel-entries @@ -1,14 +1,11 @@ #!/usr/bin/env bash set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) if [[ "$1" = "" ]]; then - out=$(recsel -t Entry "${recfile}" | recfmt -f share/recit/templates/entries.templ) + out=$(recsel -t Entry "$recfile" | recfmt -f share/recit/templates/entries.templ) else - out=$(recsel -t Entry "${recfile}" -e "$1" | recfmt -f share/recit/templates/entries.templ) + out=$(recsel -t Entry "$recfile" -e "$1" | recfmt -f share/recit/templates/entries.templ) fi echo -e "$out" diff --git a/libexec/recit-recsel-projects b/libexec/recit-recsel-projects index f7778e9..017e3e4 100755 --- a/libexec/recit-recsel-projects +++ b/libexec/recit-recsel-projects @@ -1,14 +1,11 @@ #!/usr/bin/env bash set -e -# shellcheck source=/dev/null -source lib/loader - -recfile=$(load_recit) +recfile=$(recit-file) if [[ "$1" = "" ]]; then - out=$(recsel -t Project "${recfile}" | recfmt -f share/recit/templates/projects.templ) + out=$(recsel -t Project "$recfile" | recfmt -f share/recit/templates/projects.templ) else - out=$(recsel -t Project "${recfile}" -e "$1" | recfmt -f share/recit/templates/projects.templ) + out=$(recsel -t Project "$recfile" -e "$1" | recfmt -f share/recit/templates/projects.templ) fi echo -e "$out" |