about summary refs log tree commit diff
path: root/configs/uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'configs/uninstall')
-rwxr-xr-x[-rw-r--r--]configs/uninstall16
1 files changed, 11 insertions, 5 deletions
diff --git a/configs/uninstall b/configs/uninstall
index 547d01280951..8cbd5b98fe34 100644..100755
--- a/configs/uninstall
+++ b/configs/uninstall
@@ -2,10 +2,16 @@
 
 configs="$DOTFILES/configs"
 
-if [[  $(uname) == 'Darwin' ]]; then
-  (cd "$configs/os_x" && stow --delete --target="$HOME" *)
-elif [[ $(uname) == 'Linux' ]]; then
-  (cd "$configs/linux" && stow --delete --target="$HOME" *)
-fi
+case $(hostname) in
+  # desktop
+  wpcarro.lon.corp.google.com)
+    (cd "$configs/desktop" && stow --delete --target="$HOME" *);;
+  # laptop
+  wpcarro.roam.googlers.com)
+    (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" *)