tvl-depot/configs/install
William Carroll 61b40b3012 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.
2019-03-18 15:53:18 +00:00

17 lines
401 B
Bash
Executable file

#!/usr/bin/env bash
configs="$DOTFILES/configs"
case $(hostname) in
# desktop
wpcarro.lon.corp.google.com)
(cd "$configs/desktop" && stow --target="$HOME" *);;
# laptop
wpcarro)
(cd "$configs/laptop" && stow --target="$HOME" *);;
# cloudtop
wpcarro.c.googlers.com)
(cd "$configs/cloudtop" && stow --target="$HOME" *);;
esac
(cd "$configs/shared" && stow --target="$HOME" *)