Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh showoff
- X-seq: zsh-users 2685
- From: Bruce Stephens <bruce@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Zsh showoff
- Date: 14 Oct 1999 21:38:56 +0100
- In-reply-to: Claus Alboege's message of "Thu, 14 Oct 1999 11:06:46 +0200"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <38059D26.E111B176@xxxxxxxxxxxxxx>
Claus Alboege <tractrix@xxxxxxxxxxxxxx> writes:
> I'm rather new to the zsh, and wonder if someone would show me some
> .zsh* files, that could show some of the nice (and more spectacular)
> features of zsh. Right now I don't care about memory footprint, so
> everything is welcome.
The default behaviour is pretty good. Here's approximately what I
have in .zshrc:
PS1="%n%# "
RPROMPT="%~"
[[ $TERM = "xterm" ]] && stty pass8 -ixon && bindkey -me
setopt autopushd autocd autolist
setopt autoparamkeys autoremoveslash cdablevars
setopt completeinword correctall correct equals
setopt extendedglob magicequalsubst histignoredups
setopt numericglobsort pushdignoredups
ttyctl -u
There's some completion stuff, but that's all automatically added in
3.1.6.
I'm not sure what would be obvious (other than the current directory
at the right hand side, from RPROMPT, obviously).
autopushcd means that every change directory command acts as a pushd
(so you can use popd to get back to previous directories, which I find
convenient).
autocd means you can change to directories just by naming them (i.e.,
you can say things like "../../../src", omitting the command "cd").
Probably the one I use most is extendedglob. All C files underneath
the current working directory modified in the last day, "**/*.c(m-1)",
and stuff. The ~ operator is handy, too: all files except the C
files, "*~*.c".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author