commit eab3fc9d02aabbc52b0d105ce24deb43ffe5dadd
parent 076f2fe6fbd2abb8a08d9afcafea09627c81c048
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Wed, 21 Jun 2023 06:36:53 -0700
Update ap usage of aps
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/local/bin/bin/ap b/local/bin/bin/ap
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright 2022 Jacob R. Edwards
+# Copyright 2022, 2023 Jacob R. Edwards
# Featureful apc wrapper
#
# Features:
@@ -16,9 +16,9 @@ set -e
config="${XDG_CONFIG_HOME:-"$HOME"/.config}"/ap
! test -S "${apsock:-/tmp/aps}" && {
- aps
test -f "$config"/rc &&
- nocomment < "$config"/rc | apc
+ rc="$config"/rc
+ nocomment < "${rc:-/dev/null}" | aps
}
commands() {