Created
January 4, 2018 05:37
-
-
Save vancluever/0ee530316f30d8b7d836a1fce3704ab6 to your computer and use it in GitHub Desktop.
Add a recording signal to your bash prompt if you are using asciinema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -n "${ASCIINEMA_REC}" ]; then | |
PS1='[\[\e[31m\]•REC\[\e[0m\] \W]\$ ' | |
else | |
PS1='[\u@\h \W]\$ ' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This needs to go into your
.bashrc
, or somewhere where it can overridePS1
correctly. You will want to ensure it gets run when you launch into the shell session being wrapped by asciinema as well.