__mdw_set_prompt_hacks () {
case $TERM in
- linux*|screen*|xterm*|vt100*|eterm*)
+ linux*|screen*|xterm*|putty*|vt100*|eterm*)
bold=%B unbold=%b
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
}
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 glob_star_short
setopt hist_ignore_all_dups
setopt hist_ignore_space
-setopt ksh_glob
+unsetopt ksh_glob
setopt list_ambiguous
setopt list_packed
setopt multios
setopt rc_expand_param
setopt share_history
+hash -d t=$TMPDIR
+
###--------------------------------------------------------------------------
### Finishing touches.