summaryrefslogtreecommitdiff
path: root/dot_local/lib/sh/hascmd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_local/lib/sh/hascmd1
-rw-r--r--dot_local/lib/sh/hascmd.fish1
2 files changed, 2 insertions, 0 deletions
diff --git a/dot_local/lib/sh/hascmd b/dot_local/lib/sh/hascmd
new file mode 100644
index 0000000..994bc71
--- /dev/null
+++ b/dot_local/lib/sh/hascmd
@@ -0,0 +1 @@
+test -x "$(command -v $1)"
diff --git a/dot_local/lib/sh/hascmd.fish b/dot_local/lib/sh/hascmd.fish
new file mode 100644
index 0000000..9d566c8
--- /dev/null
+++ b/dot_local/lib/sh/hascmd.fish
@@ -0,0 +1 @@
+type -qf $argv