summaryrefslogtreecommitdiff
path: root/include/conflicts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
commitec6c924f8791926693a515524b27eb805be50f63 (patch)
tree2018e2599e767adcbf81f021060e1daa4d0dc355 /include/conflicts
parente7ad146b035856a747781fa4fb823a24aa3f5842 (diff)
Remove check_com function
Diffstat (limited to 'include/conflicts')
-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
}