~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/zshrc: Add in Bash-style completion-type override bindings.
[profile]
/
dot
/
zshrc
diff --git
a/dot/zshrc
b/dot/zshrc
index
f6b205a
..
9cc436b
100644
(file)
--- a/
dot/zshrc
+++ b/
dot/zshrc
@@
-17,7
+17,7
@@
__mdw_set_prompt_hacks () {
gitcolour=%F{cyan} rccolour=%F{red} uncolour=%f
;;
esac
gitcolour=%F{cyan} rccolour=%F{red} uncolour=%f
;;
esac
- host=%m dir=" %(6~!%-1~/.../%
5
~!%~)"
+ host=%m dir=" %(6~!%-1~/.../%
4
~!%~)"
more=%F{green}%_%f
}
more=%F{green}%_%f
}
@@
-83,6
+83,12
@@
bindkey -s "\eOp" "0" "\eOn" "."; bindkey "\eOM" accept-line
bindkey "\ep" history-beginning-search-backward
bindkey "\en" history-beginning-search-forward
bindkey "\ep" history-beginning-search-backward
bindkey "\en" history-beginning-search-forward
+bindkey "\e," _history-complete-older
+
+for i in '!' '$' '@' '/' '~'; do
+ bindkey "\e$i" _bash_complete-word
+ bindkey "^X$i" _bash_list-choices
+done
setopt interactive_comments
bindkey "\e#" pound-insert
setopt interactive_comments
bindkey "\e#" pound-insert
@@
-141,7
+147,7
@@
unsetopt global_export
setopt glob_star_short
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt glob_star_short
setopt hist_ignore_all_dups
setopt hist_ignore_space
-setopt ksh_glob
+
un
setopt ksh_glob
setopt list_ambiguous
setopt list_packed
setopt multios
setopt list_ambiguous
setopt list_packed
setopt multios
@@
-151,6
+157,8
@@
setopt notify
setopt rc_expand_param
setopt share_history
setopt rc_expand_param
setopt share_history
+hash -d t=$TMPDIR
+
###--------------------------------------------------------------------------
### Finishing touches.
###--------------------------------------------------------------------------
### Finishing touches.