chiark / gitweb /
Add domains to vtwmrc ncipher hosts.
[ian-dotfiles.git] / config
diff --git a/config b/config
index 4639ad581bff0ced860ec8a1b062a7bd1e77a2cf..c1e03623408ad0d451aa72981b98c8b46413165f 100644 (file)
--- a/config
+++ b/config
@@ -1,6 +1,7 @@
 @@-
 chomp($nodename= `uname -n`); $? and die 'uname $?';
 ($hostname)=(gethostbyname $nodename) or die "hostname $nodename ?";
+$nodename =~ s/\..*//;
 
 $xbindir= '/usr/bin/X11';
 
@@ -21,7 +22,9 @@ if ($s =~ m/^Linux$/) {
     die "$s ?";
 }
 
-$ncipher= $hostname =~ m/\.ncipher\.com$/ ? 'cam' :
-          $hostname =~ m/\.ncipherusa\.com$/ ? 'bos' :
+$ncipher= $hostname =~ m/\.(ncipher\.com$)/    ? 'cam' :
+          $hostname =~ m/\.(ncipherusa\.com$)/ ? 'bos' :
           0;
 
+%ncipherdom= ('cam' => 'ncipher.com',
+             'bos' => 'ncipherusa.com');