From 87d34728903dfdf1f2d17ffaa48169758454840c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 3 Dec 2023 10:15:32 +0200 Subject: bashrc: make a few assignments more safe Signed-off-by: Lars Wirzenius Sponsored-by: author --- bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 6d32737..431e010 100644 --- a/bashrc +++ b/bashrc @@ -104,7 +104,8 @@ wrap_if_nonempty() { define_ps1() { termattr bold blue date +%H:%M | tr -d '\n' - local hostname="$(hostname)" + local hostname + hostname="$(hostname)" case "$hostname" in exolobe3) printf ' \w ' @@ -217,5 +218,5 @@ if [ -e "$HOME/.cargo/env" ]; then fi if command -v pathdedup >/dev/null; then - export PATH="$(pathdedup)" + PATH="$(pathdedup)" fi -- cgit v1.2.1