diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 23:20:29 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 23:20:29 +0100 |
commit | ec6c924f8791926693a515524b27eb805be50f63 (patch) | |
tree | 2018e2599e767adcbf81f021060e1daa4d0dc355 /include/conflicts | |
parent | e7ad146b035856a747781fa4fb823a24aa3f5842 (diff) |
Remove check_com function
Diffstat (limited to 'include/conflicts')
-rwxr-xr-x | include/conflicts | 3 |
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 } |