61b40b3012
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.
17 lines
437 B
Bash
Executable file
17 lines
437 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
configs="$DOTFILES/configs"
|
|
|
|
case $(hostname) in
|
|
# desktop
|
|
wpcarro.lon.corp.google.com)
|
|
(cd "$configs/desktop" && stow --delete --target="$HOME" *);;
|
|
# laptop
|
|
wpcarro)
|
|
(cd "$configs/laptop" && stow --delete --target="$HOME" *);;
|
|
# cloudtop
|
|
wpcarro.c.googlers.com)
|
|
(cd "$configs/cloudtop" && stow --delete --target="$HOME" *);;
|
|
esac
|
|
|
|
(cd "$configs/shared" && stow --delete --target="$HOME" *)
|