Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Grmls core configuration files for zsh, vim, screen…
Shell VimL Emacs Lisp

zshrc: drop 'setopt nonomatch' configuration

This is something many experienced Zsh users sometimes complain
about for our config, so let's get this fixed.

The behaviour of 'setopt nonomatch' brings the Zsh behaviour
closer to what Bash does, though people should get used to proper
quoting and get the default Zsh behaviour also with grml-zshrc.

Short explanation for the behaviour of 'setopt nonomatch' by Frank:

| If there's no *.txt in $PWD that command line will not execute with Zsh's default behaviour. You have to quote: "*.txt"
| If there *is* a *.txt file in $PWD, the command will not work as expected: Thus quoting makes the call sane.
| nonomatch makes that expansion as it is done in bash: *.txt => No match? => insert '*.txt'

Short demonstration:

| % setopt nonomatch
| % for f in *.foo ; echo $f
| *.foo
| % setopt nomatch
| % for f in *.foo ; echo $f
| zsh: no matches found: *.foo

The setting is provided as an example in etc/skel/.zshrc now.

Signed-off-by: Michael Prokop <mika@grml.org>
Acked-By: Frank Terbeck <ft@grml.org>
Acked-By: Evgeni Golov <evgeni@grml.org>
latest commit 016955c64b
@mika mika authored

README.md

grml-etc-core

This repository contains the core /etc files for the Grml system.

While generally these files are distributed as a Debian package, named "grml-etc-core", they are also useful on other systems.

To use the most important files for your user, use the following commands:

# IMPORTANT: please note that you might override existing
# configuration files in the current working directory!
wget -O .screenrc     http://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic
wget -O .vimrc        http://git.grml.org/f/grml-etc-core/etc/vim/vimrc
wget -O .zshrc        http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc

Or, on operating systems without wget:

# IMPORTANT: please note that you might override existing
# configuration files in the current working directory!
curl -Lo .screenrc    http://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic
curl -Lo .vimrc       http://git.grml.org/f/grml-etc-core/etc/vim/vimrc
curl -Lo .zshrc       http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc

Further information is available from http://grml.org/console/

Something went wrong with that request. Please try again.