[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

zsh is pretty good



I have always used bash as it is the default shell on Debian. However,
I started using zsh  couple of days ago and find it pretty impressive.
Here is a simple feature which makes switching to zsh worth while.

When doing tab completion the choices disappear after the string is
completed! For example, say I have

rajulocal@hogwarts ~/x % ls file*
file10.txt  file11.txt  file12.txt  file13.txt  file1.txt  file2.txt
file3.csv  file4.csv  file5.tsv  file6.tsv  file7.txt  file9.txt

Now if I do
rajulocal@hogwarts ~/x % ls file<tab>
Completing files
file2.txt    file4.csv    file6.tsv    file7.txt    file10.txt
file12.txt
file3.csv    file5.tsv    file1.txt    file9.txt    file11.txt   file13.txt*

and enter 12.txt, I get

rajulocal@hogwarts ~/x % ls file12.txt
file12.txt

But the cool thing is that all those tab completion entries
disappeared afterwards. This makes the konsole screen look much
cleaner. I am using the default zshrc recommended by the debian
maintainers.

Also, I noticed that the popcon for zsh shows ~11,000 installations vs
~168,000 installations for bash. So it is not that popular among
debian users. But it could be due to the fact that zsh is not the
default shell on Debian. So I thought I'd share about my good
experience and save others from "I wish I knew this years ago" moment.
I, for sure, am having one at the moment.

raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


Reply to: