summaryrefslogtreecommitdiff
path: root/etc/alias/short
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-01 17:52:51 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-01 17:52:51 +0100
commit4ee356cdc5e566fbe34468e1bc5b222506e4f61c (patch)
treeff5d136a4d93f6aa788c1c3412481a318912a611 /etc/alias/short
parent24028efb55a7f5f07a5cf772eb84f34b809d46a6 (diff)
short aliases: Ask check_com before aliasing ssh hosts
Diffstat (limited to 'etc/alias/short')
-rw-r--r--etc/alias/short2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/alias/short b/etc/alias/short
index e2c42e8..f68eb8b 100644
--- a/etc/alias/short
+++ b/etc/alias/short
@@ -74,6 +74,6 @@ salias s2r='s2ram -f'
## SSH Hosts
for host in ${(k)hosts}; {
- alias $host="ssh $host"
+ check_com $host || alias $host="ssh $host"
}
unset host