dot/shell-rc: Capture the hostname once and for all.
[profile] / dot / shell-rc
index e29ac37..67ad457 100644 (file)
@@ -61,7 +61,8 @@ __mdw_runhook () {
 ###--------------------------------------------------------------------------
 ### Prompt machinery.
 
-__mdw_set_prompt_hacks () { host=$(hostname); dir=""; }
+__mdw_host=$(hostname)
+__mdw_set_prompt_hacks () { host=$__mdw_host; dir=""; }
 
 __mdw_set_prompt_pieces () {
   local hqual