summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2020-08-22 11:27:39 -0700
committerGitHub <noreply@github.com>2020-08-22 13:27:39 -0500
commitb53b9fd17e983bbc619f7ed3189b530eb60e1f82 (patch)
treeb2e997f4ce76e2ef0acf2c9e5165c3fbfee951cb /lib
parent8ce5718922b4299e720924dbab61e18405d381bb (diff)
downloadspack-b53b9fd17e983bbc619f7ed3189b530eb60e1f82.tar.gz
spack-b53b9fd17e983bbc619f7ed3189b530eb60e1f82.tar.bz2
spack-b53b9fd17e983bbc619f7ed3189b530eb60e1f82.tar.xz
spack-b53b9fd17e983bbc619f7ed3189b530eb60e1f82.zip
Fix redundant reset of terminal in prompt example (#17698)
I know that it's just an example, but I was trying to figure out what was going on and it wasn't making sense.... `tput sgr0` resets the terminal state (http://linuxcommand.org/lc3_adv_tput.php) and I can't see any reason to do it twice. Deleting the second occurrence doesn't seem to break the fancy prompt effect.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/containers.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst
index b215507701..78e79286d2 100644
--- a/lib/spack/docs/containers.rst
+++ b/lib/spack/docs/containers.rst
@@ -71,7 +71,7 @@ Environments:
&& yum install -y libgomp \
&& rm -rf /var/cache/yum && yum clean all
- RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
+ RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ "' >> ~/.bashrc
LABEL "app"="gromacs"
@@ -165,7 +165,7 @@ of environments:
# Extra instructions
extra_instructions:
final: |
- RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
+ RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ "' >> ~/.bashrc
# Labels for the image
labels:
@@ -293,7 +293,7 @@ following ``Dockerfile``:
&& yum install -y libgomp \
&& rm -rf /var/cache/yum && yum clean all
- RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
+ RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ "' >> ~/.bashrc
LABEL "app"="gromacs"