if (( ${BASH_VERSINFO[0]} >= 4 )); then shopt -s globstar; fi
shopt -s gnu_errfmt
shopt -s histappend
-shopt -s histexpand
+set -o histexpand
shopt -s histreedit
shopt -u histverify
shopt -s hostcomplete
;;; Custom units stored by Calc on Thu Mar 18 19:02:50 1999
(setq math-additional-units '(
+ (EB "1024 * PB" "Exabyte")
+ (PB "1024 * TB" "Petabyte")
(TB "1024 * GB" "Terabyte")
(gig "GB" "Gigabyte")
(GB "1024 * MB" "Gigabyte")
(MB "1024 * kB" "Megabyte")
(KB "kB" "Kilobyte")
(kB "1024 * byte" "Kilobyte")
+ (Eb "1024 * Pb" "Exabit")
+ (Pb "1024 * Tb" "Petabit")
(Tb "1024 * Gb" "Teraabit")
(Gb "1024 * Mb" "Gigabit")
(Mb "1024 * kb" "Megabit")
[format]
headers = "Organization: Straylight/Edgeware\n"
+ coverletter = auto
+ thread = shallow
+ signature = "[mdw]"
[color]
ui = auto
[alias]
egrep = "grep -E"
- patch = "format-patch -o p -s"
+ patches = "format-patch --full-index"
graph = "log --pretty=oneline --abbrev-commit --graph"
release = !"sh -e -c ' \
[ $# -gt 0 ] || { \
amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
spaces = !"sh -e -c 'git ls-files -z \"$@\"| \
xargs -0r space -cv' spaces"
- mailto = "send-email \
- --quiet \
- --no-chain-reply-to \
- --no-signed-off-by-cc \
- --to"
files = "ls-files --exclude-standard"
unstg = !"sh -e -c ' \
: ${GIT_DIR=$(git rev-parse --git-dir)}; \
aliasesfile = @profile@/dot/mailrc
aliasfiletype = mailrc
chainreplyto = no
+ thread = no
signedoffbycc = yes
suppresscc = self
except AttributeError: pass
else:
reg = pt.application.key_bindings_registry
- bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
+ try: bind = reg.add_binding
+ except AttributeError: bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
def inhibit_history_search(buf, fn):
searchp, searchtext = buf.enable_history_search, buf.history_search_text
## Fancy highlighting in some terminals.
local bold unbold nl gitcolour rccolour uncolour
- local host dir
- bold="" unbold="" nl="" gitcolour="" rccolour="" uncolour=""
+ local host dir more
+ bold="" unbold="" nl="" gitcolour="" rccolour="" uncolour="" more=""
__mdw_set_prompt_hacks
## Choose the right delimiters. Highlight root prompts specially;
__mdw_prompt_rc_left="$unbold$rccolour"
__mdw_prompt_rc_right="$uncolour$bold"
__mdw_prompt_right="$right$unbold"
+ __mdw_prompt_more=" $more$bold>$unbold "
}
__mdw_set_prompt () {
- case "$TERM:$INSIDE_EMACS" in
+ case "${TERM-dumb}:${INSIDE_EMACS+$INSIDE_EMACS}" in
dumb:)
case $(id -u) in 0) PS1='# ' ;; *) PS1='$ ' ;; esac
PS2='> '
*) rc="$__mdw_prompt_rc_left rc=$__mdw_last_rc$__mdw_prompt_rc_right" ;;
esac
PS1="$__mdw_prompt_left$git$rc$__mdw_prompt_right"
- PS2="$PS1 $bold>$unbold "
+ PS2="$PS1$__mdw_prompt_more"
unset __mdw_last_rc
;;
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
}
if [ -t 0 ]; then
bindkey "\ec" capitalize-word-bash
bindkey "\e^c" capitalize-word-shell
+bindkey "\e[1~" beginning-of-line "\e[4~" end-of-line
+
+bindkey -s "\eOQ" "/" "\eOR" "*" "\eOS" "-"
+bindkey -s "\eOw" "7" "\eOx" "8" "\eOy" "9"
+bindkey -s "\eOt" "4" "\eOu" "5" "\eOv" "6" "\eOk" "+"
+bindkey -s "\eOq" "1" "\eOr" "2" "\eOs" "3"
+bindkey -s "\eOp" "0" "\eOn" "."; bindkey "\eOM" accept-line
+
+bindkey -s "\eOQ" "/" "\eOR" "*" "\eOS" "-"
+bindkey -s "\eOw" "7" "\eOx" "8" "\eOy" "9"
+bindkey -s "\eOt" "4" "\eOu" "5" "\eOv" "6" "\eOk" "+"
+bindkey -s "\eOq" "1" "\eOr" "2" "\eOs" "3"
+bindkey -s "\eOp" "0" "\eOn" "."; bindkey "\eOM" accept-line
+
bindkey "\ep" history-beginning-search-backward
bindkey "\en" history-beginning-search-forward
unsetopt beep
setopt extendedglob
unsetopt flow_control
+unsetopt global_export
+setopt glob_star_short
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt ksh_glob
###--------------------------------------------------------------------------
### Finishing touches.
+## Local tweaks.
__mdw_source_if_exists "$HOME/.zshrc-local"
###----- That's all, folks --------------------------------------------------
(w3m-browse-url url new-session-p))
(select-window window)))))
+(eval-after-load 'w3m
+ '(define-key w3m-mode-map [?\e ?\r] 'w3m-view-this-url-new-session))
+
(defvar mdw-good-url-browsers
'(browse-url-chromium
browse-url-mozilla
(ansi-term (list "ssh" host) (format "ssh@%s" host)))
(defvar git-grep-command
- "env PAGER=cat git grep --no-color -nH -e "
+ "env GIT_PAGER=cat git grep --no-color -nH -e "
"*The default command for \\[git-grep].")
(defvar git-grep-history nil)
(interactive
(list (read-shell-command "Run git grep (like this): "
git-grep-command 'git-grep-history)))
- (grep command-args))
+ (let ((grep-use-null-device nil))
+ (grep command-args)))
;;;--------------------------------------------------------------------------
;;; Magit configuration.
.gdb_history
## Build and release directories.
-build
-build-*
-build.*
-dist-*
-deb-build
+/build/
+/build.*/
+/dist-*/
+/p/
+/p.*/