=== removed file 'zsh-functions/alias_setup_bzr' --- zsh-functions/alias_setup_bzr 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_bzr 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -alias bzrnp="bzr --no-plugins" === removed file 'zsh-functions/alias_setup_elinks' --- zsh-functions/alias_setup_elinks 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_elinks 1970-01-01 00:00:00 +0000 @@ -1,3 +0,0 @@ -eldump() { - elinks -dump -dump-color-mode 3 -dump-width $COLUMNS "$@" | sed 's/\o033\[48;5;0m/\o033[49m/g' -} === removed file 'zsh-functions/alias_setup_emerge' --- zsh-functions/alias_setup_emerge 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_emerge 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -alias emergedbg="FEATURES='keepwork keeptemp' emerge --quiet-build n --quiet n --jobs 1" === removed file 'zsh-functions/alias_setup_gdb' --- zsh-functions/alias_setup_gdb 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_gdb 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -alias gdbrun="gdb --ex run --args" === removed file 'zsh-functions/alias_setup_ls' --- zsh-functions/alias_setup_ls 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_ls 1970-01-01 00:00:00 +0000 @@ -1,2 +0,0 @@ -alias ls="ls --color" -alias ll="ls -lh --color --time-style=long-iso" === removed file 'zsh-functions/alias_setup_netstat' --- zsh-functions/alias_setup_netstat 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_netstat 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -alias ns="netstat -ltup" === removed file 'zsh-functions/alias_setup_task' --- zsh-functions/alias_setup_task 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_task 1970-01-01 00:00:00 +0000 @@ -1,5 +0,0 @@ -alias t=task -alias t.a='task add' -alias t.d='task done' -alias t.c='task calendar' -alias t.e='task edit' === removed file 'zsh-functions/alias_setup_w3mman' --- zsh-functions/alias_setup_w3mman 2013-06-04 18:44:28 +0000 +++ zsh-functions/alias_setup_w3mman 1970-01-01 00:00:00 +0000 @@ -1,4 +0,0 @@ -wman() { - MANWIDTH=$COLUMNS w3mman "$@" -} -compdef _man w3mman wman === removed file 'zsh-functions/aliasinit' --- zsh-functions/aliasinit 2013-06-04 18:44:28 +0000 +++ zsh-functions/aliasinit 1970-01-01 00:00:00 +0000 @@ -1,21 +0,0 @@ -emulate -L zsh -setopt extendedglob -local ppath='' name func -local -a match mbegin mend alias_functions -for func in $^fpath/alias_setup_*(N) -do - if [[ $func = */alias_setup_(#b)(*) ]] - then - name="$match[1]" - if [[ -r "$func" ]] && (($+commands[$name])) - then - alias_functions+=$func:t - autoload -Uz $func:t - fi - else - print "Eh? Mismatch between glob patterns in aliasinit." - fi -done -for func in ${(o)alias_functions}; do - $func -done === removed file 'zsh-functions/find_ssh_agent' --- zsh-functions/find_ssh_agent 2013-06-04 18:44:28 +0000 +++ zsh-functions/find_ssh_agent 1970-01-01 00:00:00 +0000 @@ -1,9 +0,0 @@ -find_ssh_agent () { - ssh-add -l &>/dev/null && return - for SSH_AUTH_SOCK in /tmp/ssh-*/agent.*; do - SSH_AGENT_PID=${SSH_AUTH_SOCK%*agent.} - export SSH_AUTH_SOCK SSH_AGENT_PID - ssh-add -l &>/dev/null && return - done - eval "$(keychain -Q -q --eval --agents ssh)" -} === removed file 'zsh-functions/site_zshrc_10_features' --- zsh-functions/site_zshrc_10_features 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_10_features 1970-01-01 00:00:00 +0000 @@ -1,13 +0,0 @@ -################## -# shell features # -################## - -setopt equals -setopt extendedglob -setopt interactivecomments -setopt autopushd - -HISTSIZE=100000 -SAVEHIST=100000 -HISTFILE=~/.zsh-history -setopt INC_APPEND_HISTORY === removed file 'zsh-functions/site_zshrc_15_env' --- zsh-functions/site_zshrc_15_env 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_15_env 1970-01-01 00:00:00 +0000 @@ -1,3 +0,0 @@ -if [[ -a $TTY ]]; then - export GPG_TTY=$TTY -fi === removed file 'zsh-functions/site_zshrc_20_prompt' --- zsh-functions/site_zshrc_20_prompt 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_20_prompt 1970-01-01 00:00:00 +0000 @@ -1,40 +0,0 @@ -autoload -Uz promptinit ft_vi_promptinit ft_vi_promptcolors -promptinit - -setopt PROMPT_SUBST - -# mode indicaton -typeset -g A psvmodetext - -# check if we are running in some special mode -if (($+ZLAUNCHER)); then - prompt gentoo white - PS1="%F{green}%n@%m%f%k %B %1v>>> %#%b%f%k " - site_rc_blacklist+=site_zshrc_25_vcsinfo -elif (($+MAILZ)); then - prompt gentoo white - PS1='$(zmuch_fancy_prompt)%U${psvar[1]}: %1~%u%f%b%k> ' - ft_vi_promptinit - ft_vi_promptcolors -t black green black red - site_rc_blacklist+=site_zshrc_25_vcsinfo -else - # regular prompt - prompt ccx - RPROMPT='${vcs_info_msg_0_}${vcs_info_msg_home}' - - ft_vi_promptinit - ft_vi_promptcolors black green black red - - precmd_functions+=vcs_info_home - usv.bg ~/service - sv start ~/service/home_vcs_info &>/dev/null - - # hardstatus / terminal title - if [[ $TERM == (xterm|rxvt|screen|Eterm|putty)* ]]; then - PS1=$'%{\e]2;%m%(!.#.:)%2~\e\\%}'"$PS1" - fi -fi - -# report timing statistics for commands that take more than this, in seconds -REPORTTIME=5 -TIMEFMT="$( print -P %F{cyan} )time:$( print -P %f ) %U user %S system %P cpu %*E total %J" === removed file 'zsh-functions/site_zshrc_40_completion' --- zsh-functions/site_zshrc_40_completion 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_40_completion 1970-01-01 00:00:00 +0000 @@ -1,18 +0,0 @@ -autoload -Uz compinit -compinit - -zstyle ':completion:*' use-cache on -zstyle ':completion:*' cache-path ~/.zsh/cache - -############################ -# dircolors for completion # -############################ - -if [ -e "${HOME}/.dircolors" ]; then - eval $(dircolors -b "${HOME}/.dircolors") -elif [ -e /etc/DIR_COLORS ] -then - eval $(dircolors -b /etc/DIR_COLORS) -fi - -zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} === removed file 'zsh-functions/site_zshrc_67_opp' --- zsh-functions/site_zshrc_67_opp 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_67_opp 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -autoload -Uz site_source && site_source opp.zsh/opp.zsh === removed file 'zsh-functions/site_zshrc_70_keybindings' --- zsh-functions/site_zshrc_70_keybindings 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_70_keybindings 1970-01-01 00:00:00 +0000 @@ -1,166 +0,0 @@ -############### -# keybindings # -############### - -autoload -U edit-command-line -zle -N edit-command-line - -autoload -Uz url-quote-magic -zle -N self-insert url-quote-magic - -bindboth() { - bindkey -M viins "$@" - bindkey -M vicmd "$@" -} - -# redefine history widgets to drop into cmd mode -widget-vicmd() { - local cur=$CURSOR - zle .${WIDGET%-vicmd} - zle vi-cmd-mode - CURSOR=$cur -} -for W in up-line-or-history down-line-or-history \ - history-beginning-search-backward history-beginning-search-forward -do - zle -N ${W}-vicmd widget-vicmd -done - -# insert -bindboth "^[[2~" overwrite-mode -# delete -bindboth "^[[3~" delete-char -bindboth "^[3~" delete-char - -# home -bindboth "^[[7~" beginning-of-line -bindboth "^[[1~" beginning-of-line -bindboth "^[[H" beginning-of-line -bindboth "^[OH" beginning-of-line -# end -bindboth "^[[8~" end-of-line -bindboth "^[[4~" end-of-line -bindboth "^[[F" end-of-line -bindboth "^[OF" end-of-line - -# page up -bindboth "^[[5~" history-beginning-search-backward -# page down -bindboth "^[[6~" history-beginning-search-forward - -bindkey -M vicmd n history-beginning-search-backward -bindkey -M vicmd N history-beginning-search-forward -bindboth "^[n" history-beginning-search-backward-vicmd -bindboth "^[N" history-beginning-search-forward-vicmd -bindboth "^N" down-line-or-history-vicmd -bindboth "^P" up-line-or-history-vicmd - -# ctrl-z -#bindkey '^z' edit-command-line -bindkey -M vicmd "^V" edit-command-line -bindkey -M vicmd 'v' edit-command-line - -# ctrl-e -#bindkey -M viins '^E' menu-expand-or-complete -bindboth -M viins '^A' beginning-of-line -bindboth -M viins '^E' end-of-line - -# tab -bindkey -M viins '^I' complete-word - -# no escape timeout viins -#bindkey -M viins '^C' vi-cmd-mode -bindkey -M viins '^F' vi-cmd-mode -bindkey -M vicmd '^F' vi-cmd-mode -#bindkey -M vicmd ^F send-break - -# no escape timeout vicmd -#bindkey -rpM vicmd '^C' - -# consider / a word break, for ctrl-w -WORDCHARS=${WORDCHARS//\/} - -autoload forward-word-match; zle -N forward-word-match -autoload backward-word-match; zle -N backward-word-match -autoload transpose-words-match; zle -N transpose-words-match -autoload select-word-style - -select-word-style shell -zstyle ':zle:*kill*' word-style normal - -transpose-words-match-left() { - zle backward-word-match - zle transpose-words-match - zle backward-word-match -} -zle -N transpose-words-match-left - -transpose-words-match-right() { - zle backward-word-match - zle forward-word-match - zle transpose-words-match -} -zle -N transpose-words-match-right - -# arrow movements -bindboth "^[OC" vi-forward-word -bindboth "^[OD" vi-backward-word -bindboth "^[^[OC" forward-word-match -bindboth "^[^[OD" backward-word-match -bindboth "^[^[[C" transpose-words-match-right -bindboth "^[^[[D" transpose-words-match-left - -# arrows: up down right left -# ^[[A ^[[B ^[[C ^[[D -# alt ^[^[[A ^[^[[B ^[^[[C ^[^[[D -# ctrl ^[OA ^[OB ^[OC ^[OD -# ctrl+alt ^[^[OA ^[^[OB ^[^[OC ^[^[OD - -bindboth '^[h' vi-backward-char -bindboth "^[H" backward-word-match -bindboth '^[l' vi-forward-char -bindboth "^[L" forward-word-match - -bindboth '^[j' beginning-of-line -bindboth '^[k' end-of-line - -bindboth '^[J' transpose-words-match-left -bindboth '^[K' transpose-words-match-right - -widget-tmux-previous-prompt() { - tmux copy-mode \; send-keys $(print -P '?%n@%m ') C-m n j -} -zle -N widget-tmux-previous-prompt -bindboth '^K' widget-tmux-previous-prompt - -widget-tmux-pageup-prompt() { - tmux copy-mode \; send-keys $LINES k $(print -P '?%n@%m ') C-m -} -zle -N widget-tmux-pageup-prompt -bindboth '^U' widget-tmux-pageup-prompt -if ((${+functions[zaw-register-src]})); then - bindkey -M filterselect '^U' widget-tmux-pageup-prompt - - # zaw - - bindboth '^X^X' zaw-tmux-word - bindboth '^Xt' zaw-tmux-word - bindboth '^Xl' zaw-tmux-line - - bindboth '^XT' zaw-tmux-word-all - bindboth '^XL' zaw-tmux-line-all - - bindboth '^[q' zaw-zmuch-saved-search - bindboth '^[Q' zaw-zmuch-saved-search-all - bindboth '^[m' zaw-zmuch-message-unread - bindboth '^[M' zaw-zmuch-message - bindboth '^[t' zaw-zmuch-thread-unread - bindboth '^[T' zaw-zmuch-thread - - mark-and-move-next() { - zle set-mark-command - zle down-line-or-history - } - zle -N mark-and-move-next - bindkey -M filterselect '^X' mark-and-move-next -fi === removed file 'zsh-functions/site_zshrc_80_aliases' --- zsh-functions/site_zshrc_80_aliases 2013-06-04 18:44:28 +0000 +++ zsh-functions/site_zshrc_80_aliases 1970-01-01 00:00:00 +0000 @@ -1,28 +0,0 @@ -# builtins first -alias P='print -lr' - -mkcd() { - mkdir $* && cd ${argv[-1]} -} - -# function for enabling xtrace for single line -trace() { "$@" } -functions -t trace -alias trace='trace ' -compdef _precommand trace - -# function for executing one command in a directory -ind() { - local D RET - D=$1 - shift - pushd -q $D || return $? - "$@" - RET=$? - popd -q - return $RET -} - -# now load conditionally from functions -autoload -Uz aliasinit -aliasinit