aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/.bashrc9
1 files changed, 4 insertions, 5 deletions
diff --git a/home/.bashrc b/home/.bashrc
index 946c3ef..92a4a3c 100644
--- a/home/.bashrc
+++ b/home/.bashrc
@@ -47,13 +47,12 @@ PS1+="[$TTY_NUM] [\D{%F} \t] "
47PS1+=$PS1_COLOR_RESET 47PS1+=$PS1_COLOR_RESET
48 48
49# [SSH USER@HOST] 49# [SSH USER@HOST]
50PS1+=$PS1_COLOR_MAIN 50PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [
51if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session 51if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session
52 PS1+="[SSH " # add "[SSH " 52 PS1+=$PS1_COLOR_CYAN #
53else # if not 53 PS1+="SSH " # add "SSH "
54 PS1+="[" # don't 54 PS1+=$PS1_COLOR_RESET
55fi 55fi
56PS1+=$PS1_COLOR_RESET
57 56
58PS1+="$PS1_COLOR_CYAN\u$PS1_COLOR_RESET" # USER 57PS1+="$PS1_COLOR_CYAN\u$PS1_COLOR_RESET" # USER
59PS1+="$PS1_COLOR_GREY@$PS1_COLOR_RESET" # @ 58PS1+="$PS1_COLOR_GREY@$PS1_COLOR_RESET" # @