SpaceInvaders

Beer with your prompt, & a beep!

Nov 14th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ]# cat ./prompt-beep-on.sh
  2. #!/bin/bash
  3. # How to add system beep to the bash prompt
  4. echo source this file \(\"source bash-beep-on.sh\"\)
  5. echo 224 = Hamburger, 272 = Beer Mug
  6. echo export PS1="[\u@\h \W \360\237\215\224 ]\$\a "
  7. echo export PS1="[\u@\h \W \360\237\215\224 ]\$^G " # Ctrl-v + Ctrl-g
  8.  
  9. export PS1="[\u@\h \W \360\237\215\224 ]\$\a "
  10.  
  11. ]# cat ./prompt-beep-off.sh
  12. #!/bin/bash
  13. # Remove system beep from the bash prompt
  14. echo source this file \(\"source bash-beep-off.sh\"\)
  15. echo 224 = Hamburger, 272 = Beer Mug
  16. echo export PS1="[\u@\h \W \360\237\215\224 ]\$ "
  17. echo "But now it's time for a beer!"
  18.  
  19. export PS1="[\u@\h \W \360\237\215\272 ]\$ "
  20.  
  21. # default prompt
  22. # export PS1="[\u@\h \W]\$"
Advertisement
Add Comment
Please, Sign In to add comment