about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T15·53+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T15·53+0000
commit61b40b301209644e2d695ec69bdbed762c9b3c9a (patch)
tree75f6ad8abf0ad6931770dd66036a6e15cdac122f
parent4ebeeab8c5bc9dec7c1fd8ad684d8e019faa2cff (diff)
wpcarro.roam.googlers.com -> wpcarro
Until I change my hostname, I'll need to use wpcarro. Internally on
Google networks, this laptop is resolvable via wpcarro.roam.*

Idea: consider defining in ~/.profile:

DESKTOP_NAME=<name>
LAPTOP_NAME=<name>
CLOUDTOP_NAME=<name>

...and then refer to these environment variables throughout my
configuration that depends on them. E.g. -

  - configs/install
  - configs/uninstall
  - .zshrc
  - .ssh/config

For now, I'll stick with the path of least resistance.
-rwxr-xr-xconfigs/install2
-rwxr-xr-xconfigs/uninstall2
2 files changed, 2 insertions, 2 deletions
diff --git a/configs/install b/configs/install
index 999a48e6e3e3..6405df04e31d 100755
--- a/configs/install
+++ b/configs/install
@@ -7,7 +7,7 @@ case $(hostname) in
   wpcarro.lon.corp.google.com)
     (cd "$configs/desktop" && stow --target="$HOME" *);;
   # laptop
-  wpcarro.roam.googlers.com)
+  wpcarro)
     (cd "$configs/laptop" && stow --target="$HOME" *);;
   # cloudtop
   wpcarro.c.googlers.com)
diff --git a/configs/uninstall b/configs/uninstall
index 8cbd5b98fe34..bab7a412077e 100755
--- a/configs/uninstall
+++ b/configs/uninstall
@@ -7,7 +7,7 @@ case $(hostname) in
   wpcarro.lon.corp.google.com)
     (cd "$configs/desktop" && stow --delete --target="$HOME" *);;
   # laptop
-  wpcarro.roam.googlers.com)
+  wpcarro)
     (cd "$configs/laptop" && stow --delete --target="$HOME" *);;
   # cloudtop
   wpcarro.c.googlers.com)