making zsh beep like bash
ace
ace at freedomchat.org
Sat May 20 17:45:11 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It appears that Bash and ZSH use the same profile, bc my zprofile is
symlinked to profile and both are located in /etc. I have no /etc/zsh.
On Sat, May 20, 2006 at 04:23:07PM -0400, Charles Hallenbeck wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I asked the zsh users list about making zsh beep when backspacing on an
> empty line, and received a suggestion that works great for me.
>
> It takes a widget to do that, and a widget can be defined by the
> following several lines:
>
> - -----
>
> backward-delete-char-beep() {
> if (( CURSOR == 0 )) ; then
> zle beep ;
> fi ;
> zle backward-delete-char
> }
> zle -N backward-delete-char-beep
> bindkey "^?" backward-delete-char-beep
>
> - -----
>
> I put these lines in /etc/zsh/zprofile, and they apply to all users. zsh
> now beeps just like bash when backspacing on an empty command line.
>
> Chuck
>
> - --
> The Moon is Waning Crescent (45% of Full)
> Get downloads from http://www.mhcable.com/~chuckh
> and remember, INFORMATION WANTS TO BE FREE!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFEb3qrXnuiIOyDVQURAtAZAKCTR1oRV8tMwzFG7cPugKu9I8ChbACfb7LD
> r2mdnibaC9DPhF+kY1TftUU=
> =tsKA
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFEb43nwamDI1Gy2GIRAmdQAJ9X0NygYXL+glXH/FKw51ksNV9wFQCgmaQ6
vpjKdhG7MaKXfS0JW++4n6I=
=OBsH
-----END PGP SIGNATURE-----
More information about the Speakup
mailing list