projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
/etc/skel/.zshrc: provide improved rationalise-dot version by Mikael Magnusson
[grml-etc-core.git]
/
etc
/
skel
/
.zshrc
diff --git
a/etc/skel/.zshrc
b/etc/skel/.zshrc
index
b48a9b9
..
dd4b14d
100644
(file)
--- a/
etc/skel/.zshrc
+++ b/
etc/skel/.zshrc
@@
-64,20
+64,24
@@
fi
#WORDCHARS='*?_[]~=&;!#$%^(){}'
#WORDCHARS='${WORDCHARS:s@/@}'
#WORDCHARS='*?_[]~=&;!#$%^(){}'
#WORDCHARS='${WORDCHARS:s@/@}'
-# just type '
cd ...' to get 'cd
../..'
+# just type '
...' to get '
../..'
#rationalise-dot() {
#rationalise-dot() {
-# if [[ $LBUFFER == *.. ]] ; then
-# LBUFFER+=/..
-# else
-# LBUFFER+=.
-# fi
+#local MATCH
+#if [[ $LBUFFER =~ '(^|/| | |'$'\n''|\||;|&)\.\.$' ]]; then
+# LBUFFER+=/
+# zle self-insert
+# zle self-insert
+#else
+# zle self-insert
+#fi
#}
#zle -N rationalise-dot
#bindkey . rationalise-dot
#}
#zle -N rationalise-dot
#bindkey . rationalise-dot
+## without this, typing a . aborts incremental history search
+#bindkey -M isearch . self-insert
#bindkey '\eq' push-line-or-edit
#bindkey '\eq' push-line-or-edit
-
## some popular options ##
## add `|' to output redirections in the history
## some popular options ##
## add `|' to output redirections in the history