Linked by Thom Holwerda on Tue 26th Dec 2006 15:43 UTC, submitted by bluevoodoo
General Development Examine key parts of the Z shell (zsh) and how to use its features to ease your UNIX system administration tasks. Z shell is a popular alternative to the original Bourne and Korn shells. It provides an impressive range of additional functionality, including improvements for completing different commands, files, and paths automatically, and for binding keys to functions and operations.
Thread beginning with comment 196290
To read all comments associated with this story, please click here.
Bash - almost like ZSH
by vermaden on Tue 26th Dec 2006 19:20 UTC
Member since:

ZSH can TAB Complete almost everything, for example can complete kldload/kldunload kernel module, or TAB complete files to extract from tar archive, like You would be doing TAb completion cd to another directory. Can also TAB -OPTION for command, (ls -[TAB]).

ZSH is the most powerfull/comfortable shell ever.

Reply Score: 2

RE: Bash - almost like ZSH
by sukru on Wed 27th Dec 2006 03:55 in reply to "Bash - almost like ZSH"
sukru Member since:

The same works for bash shell too. It has a configurable completion support and if you install a package like bash-completion you'll have options for many programs ready.


# scp -[TAB]
# scp -r se[TAB]
# scp -r server:/e[TAB]
# scp -r server:/etc/hos[TAB]
# scp -r server:/etc/hosts /etc

And some other features (like process substitution, and few of the filename matching rules) are also available.

I guess they're probably comparing zsh to original bsh, not currently available bash. (Yet it does not make zsh less interesting, probably bash has inspired those feature looking at zsh).

Reply Parent Score: 1

RE[2]: Bash - almost like ZSH
by vermaden on Wed 27th Dec 2006 15:53 in reply to "RE: Bash - almost like ZSH"
vermaden Member since:

does BASH also can TAB complete inside names like that:

% ls
misc/ resolution scripts/ tmp/
% vi sol[TAB]

Completes to:
% vi resolution

Reply Parent Score: 1