diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-14 19:17:12 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-14 19:17:12 +0100 |
commit | 385b139236c892716cb0edb1d0a7adb85e18ec5f (patch) | |
tree | edb5437d5fe9df8116d835b9e44f574e0b8910d3 /include/conflicts | |
parent | e343cc3ca4536607853d892d4353cee768cab947 (diff) |
include/conflicts: Check aliases
Diffstat (limited to 'include/conflicts')
-rwxr-xr-x | include/conflicts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/conflicts b/include/conflicts index ad5ed4f..7bfca11 100755 --- a/include/conflicts +++ b/include/conflicts @@ -1,6 +1,7 @@ #!/usr/bin/env zsh ## vim:ft=zsh -typeset file dir +autoload check_com +typeset file dir alias typeset PDIR=$HOME/packages typeset -a sfpath spath conflict @@ -34,3 +35,9 @@ for file in $PDIR/*/bin/*(N); { echo "conflict: $file <-> ${(j:, :)conflict}" } } + +for alias in ${(k)aliases}; { + if check_com -c $alias && [[ $aliases[$alias] != (sudo|)$alias* ]]; then + echo "conflicting alias: $alias" + fi +} |