Created
September 9, 2010 02:59
-
-
Save danbeam/571284 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
( cat <<EOT | |
anonymize () { | |
[ ! -z \$PS1 ] && export PS2=\$PS1; | |
export PS1='user@host:~\$ '; | |
} | |
unanonymize () { | |
[ ! -z \$PS2 ] && export PS1=\$PS2; | |
unset PS2; | |
} | |
EOT | |
) >> ~/.bash_profile && . ~/.bash_profile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment