From f0d8a2304e75c8c4c30afb18da5803e2ceddb122 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sat, 12 Oct 2019 22:17:27 -0600 Subject: Sync misc changes 20191012 --- base/zsh/tipz.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'base/zsh/tipz.zsh') 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[@]}" -- cgit v1.2.3-70-g09d2