Created
April 28, 2018 03:17
-
-
Save alsmola/a2469c3efb5342bb09362b8794e77bf4 to your computer and use it in GitHub Desktop.
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
function hide { | |
export OLD_PS1=${PS1} | |
set +o history | |
PS1="\e[41m $PS1 \e[m" | |
} | |
function show { | |
set -o history | |
PS1=${OLD_PS1} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment