From 8f1596f4c3396ad7e571a2fe570e3549e371896a Mon Sep 17 00:00:00 2001 From: Tim Hobson Date: Sat, 23 Nov 2024 16:15:00 +0000 Subject: [PATCH] Update SHELL_CONFIG env variable creation in docs --- docs/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 5413ccd4..401698bd 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -26,9 +26,9 @@ Environment variables are defined in your Terminal configuration file. Since we To do this, run the following command: ```console -$ echo "export SHELL_CONFIG=" $(find ~/.*shrc -maxdepth 0 | head -n 1) | sed 's/= /=/g' >> $(find ~/.*shrc -maxdepth 0 | head -n 1) +$ SHELL_CONFIG=$(find ~/.*shrc -maxdepth 0 | head -n 1) && echo "export SHELL_CONFIG=$SHELL_CONFIG" >> $SHELL_CONFIG ``` -**Then close and reopen the Terminal window that you're working in**, so that the change takes effect. Now check that the new environment variable exists: +Now check that the new environment variable exists: ```console $ echo $SHELL_CONFIG ```