commit aa62ca7f40903a063f018253ec1abcd101bb115e
parent 9b3cc67cab6432ddb3c6fa8336ba4a5e6637ff3a
Author: Jacob R. Edwards <n/a>
Date: Tue, 6 Dec 2022 11:03:22 -0600
Only list executable files as commands in ap bin
Previously both executable (searchable) diretories and files both
were shown as valid commands, when they weren't.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/local/bin/bin/ap b/local/bin/bin/ap
@@ -23,7 +23,7 @@ config="${XDG_CONFIG_HOME:-"$HOME"/.config}"/ap
commands() {
{
- (cd "$config"/bin 2>/dev/null && walk -x)
+ (cd "$config"/bin 2>/dev/null && walk -xf)
apc commands
} | sort -u
}