--- /dev/null
+# -*- sh -*-
+## vim:ft=zsh:foldmethod=marker
+
+(
+ printf "DEBHOSTS=( "
+ ldapsearch -ZZ -b dc=debian,dc=org -h db.debian.org -x '(host=*)' hostname | awk -F: '$1 == "hostname" {print $2}' | tr -d '\n'
+ printf ")\n"
+) > ~/.zshrc.d/60_debhosts
+
+. ~/.zshrc.d/60_debhosts
# Don't beep. Ever.
setopt -B
+hosts=( $DEBHOSTS )
+
if [ -e ~/.ssh/known_hosts ]; then
- hosts=(`awk -F "[, ]" '{print $1}' ~/.ssh/known_hosts`)
+ hosts=($hosts `awk -F "[, ]" '{print $1}' ~/.ssh/known_hosts`)
fi
if [ -e ~/.ssh/known_hosts2 ]; then
hosts=($hosts `awk -F "[, ]" '{print $1}' ~/.ssh/known_hosts2`)