projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
88c67d5
)
zshrc: Move slash-backward-kill-word to a proper location
author
Frank Terbeck
<ft@bewatermyfriend.org>
Sun, 7 Jun 2009 19:00:50 +0000
(21:00 +0200)
committer
Frank Terbeck
<ft@bewatermyfriend.org>
Wed, 8 Jul 2009 11:22:42 +0000
(13:22 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
e747fe2
..
1830d4e
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-677,6
+677,17
@@
commit-to-history() {
zle -N commit-to-history
bindkey "^x^h" commit-to-history
zle -N commit-to-history
bindkey "^x^h" commit-to-history
+# only slash should be considered as a word separator:
+slash-backward-kill-word() {
+ local WORDCHARS="${WORDCHARS:s@/@}"
+ # zle backward-word
+ zle backward-kill-word
+}
+zle -N slash-backward-kill-word
+
+#k# Kill everything in a word up to its last \kbd{/}
+bindkey '\ev' slash-backward-kill-word
+
# }}}
# a generic accept-line wrapper {{{
# }}}
# a generic accept-line wrapper {{{
@@
-1025,17
+1036,6
@@
MAILCHECK=30 # mailchecks
REPORTTIME=5 # report about cpu-/system-/user-time of command if running longer than 5 seconds
watch=(notme root) # watch for everyone but me and root
REPORTTIME=5 # report about cpu-/system-/user-time of command if running longer than 5 seconds
watch=(notme root) # watch for everyone but me and root
-# only slash should be considered as a word separator:
-slash-backward-kill-word() {
- local WORDCHARS="${WORDCHARS:s@/@}"
- # zle backward-word
- zle backward-kill-word
-}
-zle -N slash-backward-kill-word
-
-#k# Kill everything in a word up to its last \kbd{/}
-bindkey '\ev' slash-backward-kill-word
-
# }}}
# {{{ history
# }}}
# {{{ history