diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/alias/short | 2 | ||||
-rw-r--r-- | etc/completion | 6 | ||||
-rw-r--r-- | etc/parameters | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/etc/alias/short b/etc/alias/short index 2c54273..a3219e0 100644 --- a/etc/alias/short +++ b/etc/alias/short @@ -75,7 +75,7 @@ salias s2d='s2disk' salias s2r='s2ram -f' ## SSH Hosts -for host in aneurysm saviour kappa sievert; { +for host in $hosts; { alias $host="ssh $host" } unset host diff --git a/etc/completion b/etc/completion index f5f94df..8671712 100644 --- a/etc/completion +++ b/etc/completion @@ -31,7 +31,11 @@ unset char zstyle ':completion:*:*:kill:*' menu yes zstyle ':completion:*:*:(todo|td*):*:items' menu yes -_hosts() { compadd derf.homelinux.org kraftwerk saviour kappa nemesis aneurysm;} +function _hosts { + typeset expl + _wanted host expl 'host name' \ + compadd $hosts +} if [[ -r $compdump ]] { compinit -C -d $compdump diff --git a/etc/parameters b/etc/parameters index 4f0cf94..b119bc5 100644 --- a/etc/parameters +++ b/etc/parameters @@ -27,3 +27,7 @@ if [[ -x /usr/bin/lesspipe ]] { # others openbsd: export PKG_PATH="ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/:ftp://openbsd.ftp.fu-berlin.de/pub/OpenBSD/`uname -r`/packages/`machine -a`/" compdump='var/cache/zsh/compdump' +hosts=( + kraftwerk saviour kappa nemesis aneurysm + sievert +) |