summaryrefslogtreecommitdiff
path: root/.zsh/zshrc/00_opts
blob: 6d23897cc47ee0af3a03b18d10335febc4ada2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# zshrc/00_opts
#
# Set up important options
#
# Copyright © 2011 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git

setopt prompt_subst

#
# the follwing options were taken from grml zshrc
#

setopt append_history       # append history list to the history file
                            # (important for multiple parallel zsh sessions!)
setopt SHARE_HISTORY        # import new commands from the history file also in
                            # other zsh-session
setopt extended_history     # save each command's beginning timestamp and the
                            # duration to the history file
setopt histignorealldups    # If  a  new  command  line being added to the
                            # history list duplicates an older one, the older
                            # command is removed from the list
setopt histignorespace      # remove command lines from the history list when
                            # the first character on the line is a space
setopt auto_cd              # if a command is issued that can't be executed as
                            # a normal command, and the command is the name of
                            # a directory, perform the cd command to that
                            # directory
setopt extended_glob        # in order to use #, ~ and ^ for filename generation
                            # grep word *~(*.gz|*.bz|*.bz2|*.zip|*.Z) ->
                            # -> searches for word not in compressed files
                            # don't forget to quote '^', '~' and '#'!
setopt longlistjobs         # display PID when suspending processes as well
setopt notify               # report the status of backgrounds jobs immediately
setopt hash_list_all        # Whenever a command completion is attempted, make sure
                            # the entire command path is hashed first.
setopt completeinword       # not just at the end
setopt nohup                # and don't kill them, either
setopt auto_pushd           # make cd push the old directory onto the directory stack.
setopt nonomatch            # try to avoid the 'zsh: no matches found...'
setopt nobeep               # avoid "beep"ing
setopt pushd_ignore_dups    # don't push the same dir twice.
setopt noglobdots           # * shouldn't match dotfiles. ever.
setopt noshwordsplit        # use zsh style word splitting
setopt unset                # don't error out when unset parameters are used

# vim:ft=zsh