Skip to content

Instantly share code, notes, and snippets.

@danbeam
Created September 9, 2010 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbeam/571284 to your computer and use it in GitHub Desktop.
Save danbeam/571284 to your computer and use it in GitHub Desktop.
( 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