Created
June 27, 2013 11:39
-
-
Save olemb/5875810 to your computer and use it in GitHub Desktop.
ponpoff - turn prompt on and off in bash
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
# Turn prompt off | |
function poff { | |
PS1='$ ' | |
} | |
# Turn prompt on | |
function pon { | |
# Todo: make this work on mac | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
} | |
pon # Start with prompt on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment