summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/conflicts3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/conflicts b/include/conflicts
index b42e156..fb40aef 100755
--- a/include/conflicts
+++ b/include/conflicts
@@ -6,7 +6,6 @@
## source .../conflicts
## in a running, interactive zsh
-autoload check_com
typeset file dir alias
typeset PKG_DIR=$HOME/packages
typeset -a sfpath spath conflict
@@ -43,7 +42,7 @@ for file in $PKG_DIR/*/bin/*(N); {
}
for alias in ${(k)aliases}; {
- if check_com -c $alias && [[ $aliases[$alias] != (sudo |noglob |)$alias* ]]; then
+ if [[ -n $commands[$alias] ]] && [[ $aliases[$alias] != (sudo |noglob |)$alias* ]]; then
echo "conflicting alias: $alias"
fi
}