about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-07T16·44+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-07T16·44+0000
commitdc3c37c78e72016bb997cae2f65faa701183b5db (patch)
treef71ede0675cb7b75fa69dfd0ee369deba9827aa9 /configs
parentf293091c063e278285ba931a69b90d215413d2e6 (diff)
Support cloudtop
Supports ZSH themes based on which device I'm working. This might get
annoying after awhile, but I think the idea of having the prompt reflect
when I'm on a different machine than my own might be useful.

Adds "cloudtop" alias in ssh config.
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/misc/.ssh/config3
-rw-r--r--configs/shared/zsh/.zshrc7
2 files changed, 9 insertions, 1 deletions
diff --git a/configs/shared/misc/.ssh/config b/configs/shared/misc/.ssh/config
index 7d3075cbd502..3858ccd5c107 100644
--- a/configs/shared/misc/.ssh/config
+++ b/configs/shared/misc/.ssh/config
@@ -1,5 +1,8 @@
 Host box
   Hostname wpcarro.lon.corp.google.com
 
+Host cloudtop
+  Hostname wpcarro.c.googlers.com
+
 Match host *.corp.google.com
   ProxyCommand corp-ssh-helper %h %p
diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc
index ca49d2867fac..721bc8c74cab 100644
--- a/configs/shared/zsh/.zshrc
+++ b/configs/shared/zsh/.zshrc
@@ -14,7 +14,12 @@ antigen bundle zsh-completions # extracts archives polymorphically
 antigen bundle zsh-users/zsh-syntax-highlighting
 
 # Theming
-antigen theme refined
+# This supports different ZSH themes for each machine
+case "$(hostname)" in
+  wpcarro.c.googlers.com)      antigen theme cloud;;
+  wpcarro.lon.corp.google.com) antigen theme frisk;;
+  *)                           antigen theme refined;;
+esac
 
 # Leave this last
 antigen apply