Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ]# cat ./prompt-beep-on.sh
- #!/bin/bash
- # How to add system beep to the bash prompt
- echo source this file \(\"source bash-beep-on.sh\"\)
- echo 224 = Hamburger, 272 = Beer Mug
- echo export PS1="[\u@\h \W \360\237\215\224 ]\$\a "
- echo export PS1="[\u@\h \W \360\237\215\224 ]\$^G " # Ctrl-v + Ctrl-g
- export PS1="[\u@\h \W \360\237\215\224 ]\$\a "
- ]# cat ./prompt-beep-off.sh
- #!/bin/bash
- # Remove system beep from the bash prompt
- echo source this file \(\"source bash-beep-off.sh\"\)
- echo 224 = Hamburger, 272 = Beer Mug
- echo export PS1="[\u@\h \W \360\237\215\224 ]\$ "
- echo "But now it's time for a beer!"
- export PS1="[\u@\h \W \360\237\215\272 ]\$ "
- # default prompt
- # export PS1="[\u@\h \W]\$"
Advertisement
Add Comment
Please, Sign In to add comment