diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-03-31 01:34:19 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-03-31 01:34:19 -0400 |
commit | 893988bc4f7b767738e9e68085bc29e901a7a3de (patch) | |
tree | d24dab2ae316070123b7272e781eac28b4a85498 /home | |
parent | Create custom $PS1 prompt in 'home/.bashrc' (diff) | |
download | dotfiles.old-893988bc4f7b767738e9e68085bc29e901a7a3de.tar.gz dotfiles.old-893988bc4f7b767738e9e68085bc29e901a7a3de.tar.bz2 dotfiles.old-893988bc4f7b767738e9e68085bc29e901a7a3de.zip |
Add $PS2 prompt
Add $PS2 prompt, which is displayed when a command needs more input.
Diffstat (limited to 'home')
-rw-r--r-- | home/.bashrc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/home/.bashrc b/home/.bashrc index d4e96d3..4d072a7 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -21,7 +21,6 @@ fi | |||
21 | # Example of what the prompt should look like: | 21 | # Example of what the prompt should look like: |
22 | # [1] [2023-03-28 16:02:55] [user host] [/etc/portage] > | 22 | # [1] [2023-03-28 16:02:55] [user host] [/etc/portage] > |
23 | ########################################################################## | 23 | ########################################################################## |
24 | |||
25 | # Set colors for easy reading | 24 | # Set colors for easy reading |
26 | PS1_COLOR_RESET="\[\e[0m\]" | 25 | PS1_COLOR_RESET="\[\e[0m\]" |
27 | PS1_COLOR_GREY="\[\e[90m\]" | 26 | PS1_COLOR_GREY="\[\e[90m\]" |
@@ -84,5 +83,11 @@ PS1+=$PS1_COLOR_RESET | |||
84 | PS1+=$PS1_COLOR_MAIN | 83 | PS1+=$PS1_COLOR_MAIN |
85 | PS1+="] >" | 84 | PS1+="] >" |
86 | PS1+=$PS1_COLOR_RESET | 85 | PS1+=$PS1_COLOR_RESET |
86 | ########################################################################## | ||
87 | 87 | ||
88 | |||
89 | ########################################################################## | ||
90 | # PS2 - Secondary prompt displayed when a command needs more input | ||
91 | ################################################################## | ||
92 | PS2=" > " | ||
88 | ########################################################################## | 93 | ########################################################################## |