From 2bbac58c0972e72d345739638b8d1e2dfd5ca76f Mon Sep 17 00:00:00 2001 Message-Id: <2bbac58c0972e72d345739638b8d1e2dfd5ca76f.1717222658.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 23 Apr 2020 00:11:22 +0100 Subject: [PATCH] dot/shell-rc: Capture the hostname once and for all. Organization: Straylight/Edgeware From: Mark Wooding Rather than every time we set the prompt. --- dot/shell-rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- [mdw]