diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-03-31 02:12:23 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-03-31 02:12:23 -0400 |
commit | 45f2126980e54719c8ba0c8481c45e4a2aefcef0 (patch) | |
tree | e5035831b324bbb93691f4feb96bd51c99b36701 | |
parent | Create 'nano' config file 'home/.nanorc' (diff) | |
download | dotfiles.old-45f2126980e54719c8ba0c8481c45e4a2aefcef0.tar.gz dotfiles.old-45f2126980e54719c8ba0c8481c45e4a2aefcef0.tar.bz2 dotfiles.old-45f2126980e54719c8ba0c8481c45e4a2aefcef0.zip |
Refactor 'PS1' prompt in 'home/.bashrc'
Made the 'PS1' prompt a bit shorter and easier to read. It now more
closely reflects what the prompt actually looks like.
-rw-r--r-- | home/.bashrc | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/home/.bashrc b/home/.bashrc index bc962d1..946c3ef 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -50,39 +50,20 @@ PS1+=$PS1_COLOR_RESET | |||
50 | PS1+=$PS1_COLOR_MAIN | 50 | PS1+=$PS1_COLOR_MAIN |
51 | if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session | 51 | if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session |
52 | PS1+="[SSH " # add "[SSH " | 52 | PS1+="[SSH " # add "[SSH " |
53 | else | 53 | else # if not |
54 | PS1+="[" | 54 | PS1+="[" # don't |
55 | fi | 55 | fi |
56 | PS1+=$PS1_COLOR_RESET | 56 | PS1+=$PS1_COLOR_RESET |
57 | 57 | ||
58 | PS1+=$PS1_COLOR_CYAN | 58 | PS1+="$PS1_COLOR_CYAN\u$PS1_COLOR_RESET" # USER |
59 | PS1+="\u" | 59 | PS1+="$PS1_COLOR_GREY@$PS1_COLOR_RESET" # @ |
60 | PS1+=$PS1_COLOR_RESET | 60 | PS1+="$PS1_COLOR_BLUE\h$PS1_COLOR_RESET" # HOST |
61 | 61 | PS1+="$PS1_COLOR_MAIN] $PS1_COLOR_RESET" # ] | |
62 | PS1+=$PS1_COLOR_GREY | ||
63 | PS1+="@" | ||
64 | PS1+=$PS1_COLOR_RESET | ||
65 | |||
66 | PS1+=$PS1_COLOR_BLUE | ||
67 | PS1+="\h" | ||
68 | PS1+=$PS1_COLOR_RESET | ||
69 | |||
70 | PS1+=$PS1_COLOR_MAIN | ||
71 | PS1+="] " | ||
72 | PS1+=$PS1_COLOR_RESET | ||
73 | 62 | ||
74 | # [DIR] > | 63 | # [DIR] > |
75 | PS1+=$PS1_COLOR_MAIN | 64 | PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [ |
76 | PS1+="[" | 65 | PS1+="$PS1_COLOR_CYAN\w$PS1_COLOR_RESET" # DIR |
77 | PS1+=$PS1_COLOR_RESET | 66 | PS1+="$PS1_COLOR_MAIN] > $PS1_COLOR_RESET" # ] > |
78 | |||
79 | PS1+=$PS1_COLOR_CYAN | ||
80 | PS1+="\w" | ||
81 | PS1+=$PS1_COLOR_RESET | ||
82 | |||
83 | PS1+=$PS1_COLOR_MAIN | ||
84 | PS1+="] >" | ||
85 | PS1+=$PS1_COLOR_RESET | ||
86 | ########################################################################## | 67 | ########################################################################## |
87 | 68 | ||
88 | 69 | ||