aboutsummaryrefslogtreecommitdiff
path: root/00-prompt.zsh
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2021-11-11 23:43:21 -0700
committerJosh Rahm <joshuarahm@gmail.com>2021-11-11 23:43:21 -0700
commit595fbd07a28306268602af2ffdf9e4dac800dacd (patch)
tree4cb2d02cfe90b20995050411f839a6e307e59965 /00-prompt.zsh
parent8f7be2e7d044229bf0d079f22db474742586ca3d (diff)
downloadzshrcd-595fbd07a28306268602af2ffdf9e4dac800dacd.tar.gz
zshrcd-595fbd07a28306268602af2ffdf9e4dac800dacd.tar.bz2
zshrcd-595fbd07a28306268602af2ffdf9e4dac800dacd.zip
Make changes to make this work with Photon.
Diffstat (limited to '00-prompt.zsh')
-rw-r--r--00-prompt.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/00-prompt.zsh b/00-prompt.zsh
index 439a25d..d32b576 100644
--- a/00-prompt.zsh
+++ b/00-prompt.zsh
@@ -1,2 +1,4 @@
-source "$HOME/.zshrc.d/prompts/$(hostname).zsh" 2>/dev/null || \
- source "$HOME/.zshrc.d/local/prompts/$(hostname).zsh" 2>/dev/null
+hostname=$( which hostname &>/dev/null && hostname || cat /etc/hostname )
+
+source "$HOME/.zshrc.d/prompts/${hostname}.zsh" 2>/dev/null || \
+ source "$HOME/.zshrc.d/local/prompts/${hostname}.zsh" 2>/dev/null