From: Mark Wooding Date: Wed, 22 Apr 2020 23:11:22 +0000 (+0100) Subject: dot/shell-rc: Capture the hostname once and for all. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/2bbac58c0972e72d345739638b8d1e2dfd5ca76f?hp=ba9ea57b41a2476ba2762f2090e11f9c2e6de29b dot/shell-rc: Capture the hostname once and for all. Rather than every time we set the prompt. --- diff --git a/dot/shell-rc b/dot/shell-rc index e29ac37..67ad457 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -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