From 27da2e897bafd1e071caf504a5d6a082260b501d Mon Sep 17 00:00:00 2001 From: bonnie Date: Sun, 19 Jul 2020 22:58:30 +0800 Subject: [PATCH] update - Edit PS1 variable for bash --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85992c6..eb38aeb 100644 --- a/README.md +++ b/README.md @@ -1553,11 +1553,13 @@ useradd username passwd username ``` -##### Edit variable for bash, (e.g. displaying the whole path) +##### Edit PS1 variable for bash (e.g. displaying the whole path) ```bash -1. joe ~/.bash_profile +1. vi ~/.bash_profile 2. export PS1='\u@\h:\w\$' # $PS1 is a variable that defines the makeup and style of the command prompt +# You could use emojis and add timestamp to every prompt using the following value: +# export PS1="\t@🦁:\w\$ " 3. source ~/.bash_profile ```