aboutsummaryrefslogtreecommitdiff
path: root/base/zsh/tipz.zsh
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2019-10-12 22:17:27 -0600
committerAdam Hovorka <[email protected]>2019-10-12 22:17:27 -0600
commitf0d8a2304e75c8c4c30afb18da5803e2ceddb122 (patch)
treeeb67abe060d42219417a1e4b0d8b7ef4b4bc88a2 /base/zsh/tipz.zsh
parent7ebb6f05eecb2369dbc43e499cd4277f13e5c5c5 (diff)
Sync misc changes 20191012
Diffstat (limited to 'base/zsh/tipz.zsh')
-rw-r--r--base/zsh/tipz.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/zsh/tipz.zsh b/base/zsh/tipz.zsh
index bb1e224..fdcc058 100644
--- a/base/zsh/tipz.zsh
+++ b/base/zsh/tipz.zsh
@@ -1,3 +1,12 @@
+_tipz_ignore_list=("run-help")
+
+function _tipz_contains() {
+ local e match="$1"
+ shift
+ for e; do [[ "$e" == "$match" ]] && return 0; done
+ return 1
+}
+
###
# Search the defined aliases for a match
###
@@ -18,6 +27,8 @@ function _tipz_find_match() {
alias=$bits[1]
command=$bits[2]
+ if _tipz_contains "$alias" "${_tipz_ignore_list[@]}"; then continue; fi
+
# Create a regex that finds an exact match for
# the current argument string
args="${(@)args[@]}"