projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Emacs local variables at EOF equivalent to vim's.
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
2dadf9c
..
64503c2
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-281,6
+281,7
@@
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 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
# }}}
# }}}
@@
-622,6
+623,11
@@
zle -N slash-backward-kill-word
#k# Kill everything in a word up to its last \kbd{/}
bindkey '\ev' slash-backward-kill-word
#k# Kill everything in a word up to its last \kbd{/}
bindkey '\ev' slash-backward-kill-word
+# use the new *-pattern-* widgets for incremental history search
+if is439 ; then
+ bindkey '^r' history-incremental-pattern-search-backward
+ bindkey '^s' history-incremental-pattern-search-forward
+fi
# }}}
# a generic accept-line wrapper {{{
# }}}
# a generic accept-line wrapper {{{
@@
-644,7
+650,7
@@
bindkey '\ev' slash-backward-kill-word
zstyle ':acceptline:*' rehash true
function Accept-Line() {
zstyle ':acceptline:*' rehash true
function Accept-Line() {
- setopt localoptions noksharrays
+ emulate -L zsh
local -a subs
local -xi aldone
local sub
local -a subs
local -xi aldone
local sub
@@
-663,6
+669,7
@@
function Accept-Line() {
}
function Accept-Line-getdefault() {
}
function Accept-Line-getdefault() {
+ emulate -L zsh
local default_action
zstyle -s ":acceptline:${alcontext}" default_action default_action
local default_action
zstyle -s ":acceptline:${alcontext}" default_action default_action
@@
-677,7
+684,7
@@
function Accept-Line-getdefault() {
}
function accept-line() {
}
function accept-line() {
- setopt localoptions noksharrays
+ emulate -L zsh
local -a cmdline
local -x alcontext
local buf com fname format msg default_action
local -a cmdline
local -x alcontext
local buf com fname format msg default_action
@@
-1845,6
+1852,7
@@
vcs_info_printsys () { # {{{
}
# }}}
vcs_info_lastmsg () { # {{{
}
# }}}
vcs_info_lastmsg () { # {{{
+ emulate -L zsh
local -i i
VCS_INFO_maxexports
local -i i
VCS_INFO_maxexports
@@
-1860,6
+1868,8
@@
vcs_info_lastmsg () { # {{{
}
# }}}
vcs_info () { # {{{
}
# }}}
vcs_info () { # {{{
+ emulate -L zsh
+ setopt extendedglob
local pat
local -i found
local -a VCSs disabled dps
local pat
local -i found
local -a VCSs disabled dps
@@
-2163,7
+2173,6
@@
swspeak() {
export PS1="%m%# "
/usr/sbin/swspeak-setup $@
else # old version:
export PS1="%m%# "
/usr/sbin/swspeak-setup $@
else # old version:
- aumix -w 90 -v 90 -p 90 -m 90
if ! [[ -r /dev/softsynth ]] ; then
flite -o play -t "Sorry, software synthesizer not available. Did you boot with swspeak bootoption?"
return 1
if ! [[ -r /dev/softsynth ]] ; then
flite -o play -t "Sorry, software synthesizer not available. Did you boot with swspeak bootoption?"
return 1
@@
-4419,3
+4428,6
@@
zrclocal
## END OF FILE #################################################################
# vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4
## END OF FILE #################################################################
# vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4
+# Local variables:
+# mode: sh
+# End: