~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/gitconfig.in: Suppress the log filtering, because it doesn't work here.
[profile]
/
dot
/
zshrc
diff --git
a/dot/zshrc
b/dot/zshrc
index
e332557
..
4dc0fb7
100644
(file)
--- a/
dot/zshrc
+++ b/
dot/zshrc
@@
-30,6
+30,8
@@
fi
###--------------------------------------------------------------------------
### Line editing.
###--------------------------------------------------------------------------
### Line editing.
+case $TERM in dumb) unsetopt zle ;; esac
+
bindkey -e
for w in \
bindkey -e
for w in \
@@
-59,11
+61,17
@@
bindkey "\et" transpose-words-bash
bindkey "\e^t" transpose-words-shell
bindkey "\eu" up-case-word-bash
bindkey "\e^u" up-case-word-shell
bindkey "\e^t" transpose-words-shell
bindkey "\eu" up-case-word-bash
bindkey "\e^u" up-case-word-shell
-bindkey "\el"
up
-case-word-bash
-bindkey "\e^l"
up
-case-word-shell
+bindkey "\el"
down
-case-word-bash
+bindkey "\e^l"
down
-case-word-shell
bindkey "\ec" capitalize-word-bash
bindkey "\e^c" capitalize-word-shell
bindkey "\ec" capitalize-word-bash
bindkey "\e^c" capitalize-word-shell
+bindkey "\ep" history-beginning-search-backward
+bindkey "\en" history-beginning-search-forward
+
+setopt interactive_comments
+bindkey "\e#" pound-insert
+
__mdw_delete_horizontal_space () {
LBUFFER=${LBUFFER%%[[:space:]]##}
RBUFFER=${RBUFFER##[[:space:]]##}
__mdw_delete_horizontal_space () {
LBUFFER=${LBUFFER%%[[:space:]]##}
RBUFFER=${RBUFFER##[[:space:]]##}
@@
-78,14
+86,9
@@
__mdw_just_one_space () {
zle -N just-one-space __mdw_just_one_space
bindkey "\e " just-one-space
zle -N just-one-space __mdw_just_one_space
bindkey "\e " just-one-space
-
###--------------------------------------------------------------------------
### Completion.
###--------------------------------------------------------------------------
### Completion.
-## Initialize the fancy completion machinery.
-autoload -Uz compinit
-compinit
-
## Contexts: :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:TAG
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' insert-unambiguous false
## Contexts: :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:TAG
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' insert-unambiguous false
@@
-97,6
+100,10
@@
zstyle ':completion:*' original true
zstyle ':completion:*' verbose false
zstyle ':completion:*:*:git*:*' verbose true
zstyle ':completion:*' verbose false
zstyle ':completion:*:*:git*:*' verbose true
+## Initialize the fancy completion machinery.
+autoload -Uz compinit
+compinit
+
_r () { words[1]=sudo; _normal; }
compdef _r rootly
compdef _ssh @
_r () { words[1]=sudo; _normal; }
compdef _r rootly
compdef _ssh @
@@
-108,18
+115,20
@@
HISTFILE=~/.zsh-history
HISTSIZE=1000
SAVEHIST=1000
HISTSIZE=1000
SAVEHIST=1000
-setopt appendhistory
unsetopt auto_cd
unsetopt auto_menu
unsetopt bash_auto_list
unsetopt beep
setopt extendedglob
unsetopt auto_cd
unsetopt auto_menu
unsetopt bash_auto_list
unsetopt beep
setopt extendedglob
+unsetopt flow_control
+setopt hist_ignore_all_dups
setopt ksh_glob
setopt list_ambiguous
setopt list_packed
unsetopt nomatch
unsetopt menu_complete
setopt notify
setopt ksh_glob
setopt list_ambiguous
setopt list_packed
unsetopt nomatch
unsetopt menu_complete
setopt notify
+setopt share_history
zshaddhistory () {
case "$1" in
zshaddhistory () {
case "$1" in