diff options
-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 +} |