aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sh/cronjob.sh1
-rw-r--r--etc/sh/rc1
-rw-r--r--etc/sh/vcs-ps1.sh2
3 files changed, 3 insertions, 1 deletions
diff --git a/etc/sh/cronjob.sh b/etc/sh/cronjob.sh
index 1e11b50..05022e0 100755
--- a/etc/sh/cronjob.sh
+++ b/etc/sh/cronjob.sh
@@ -65,6 +65,7 @@ done
shift $((OPTIND - 1))
+# shellcheck disable=1090
. ~/.usr/etc/sh/rc
CMD="$*"
with-email -s "$CMD" -- "$@" 1>>"$XDG_LOG_HOME"/euandreh/mcron.log 2>&1
diff --git a/etc/sh/rc b/etc/sh/rc
index d5801b8..69606fa 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -1,4 +1,5 @@
#!/bin/sh
+# shellcheck disable=1090,1091
export ENV=~/.profile
diff --git a/etc/sh/vcs-ps1.sh b/etc/sh/vcs-ps1.sh
index b9a849a..7cc528d 100644
--- a/etc/sh/vcs-ps1.sh
+++ b/etc/sh/vcs-ps1.sh
@@ -128,7 +128,7 @@ shell_status_level() {
}
shell_status_jobs() {
- JOBS="$(jobs | grep -v autojump | wc -l)"
+ JOBS="$(jobs | grep -c autojump)"
if [ "$JOBS" != 0 ]; then
color -c red "$JOBS"
fi