Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
* upstream/master: (39 commits)
  Fix git log pretty format argument
  [Fix sorin-ionescu#698] Describe module in README the same as in code
  Fix typo in Perl module readme
  Load Homebrew installed NVM
  Enable 'acls', 'xattrs' support in rsync whenever available
  Try `lesspipe` in addition to `lesspipe.sh` for LESSOPEN
  Ignore case in filenames
  Only print fortunes in terminals
  Add homebrew-cask aliases to homebrew module
  Update OPAM setup
  [Fix sorin-ionescu#669] Do not use lazy virtualenvwrapper
  [Fix sorin-ionescu#595] Simplify the handling of the Terminal.app proxy icon
  Only one newline at end of file
  Convert tabs to spaces
  [Fix sorin-ionescu#563] Control+Arrow keys are not in the terminfo database
  [Fix sorin-ionescu#652] Execute abs with sudo
  [Fix sorin-ionescu#594] Remove quotes surrounding associative array key
  [Fix sorin-ionescu#635] Use $BROWSER to open node documentation
  Display full command line on suggestion for the kill command
  [Fix sorin-ionescu#626] Escape '%' in path
  ...

Conflicts:
	runcoms/zshrc
  • Loading branch information
duellj committed Oct 19, 2014
2 parents ee146b3 + 17a6124 commit 54237f1
Show file tree
Hide file tree
Showing 133 changed files with 169 additions and 257 deletions.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -39,4 +39,3 @@ improve its performance, do not hesitate to fork and send pull requests.
[3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[4]: https://help.github.com/articles/using-pull-requests
[5]: http://daringfireball.net/projects/markdown/syntax#img

5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -8,8 +8,8 @@ and prompt themes.
Installation
------------

Prezto will work with any recent release of Zsh, but the minimum recommended
version is 4.3.11.
Prezto will work with any recent release of Zsh, but the minimum required
version is 4.3.17.

1. Launch Zsh:

Expand Down Expand Up @@ -114,4 +114,3 @@ SOFTWARE.
[6]: http://gitref.org
[7]: http://www.bash2zsh.com/zsh_refcard/refcard.pdf
[8]: http://grml.org/zsh/zsh-lovers.html

3 changes: 1 addition & 2 deletions init.zsh
Expand Up @@ -10,7 +10,7 @@
#

# Check for the minimum supported version.
min_zsh_version='4.3.11'
min_zsh_version='4.3.17'
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
print "prezto: old shell detected, minimum required: $min_zsh_version" >&2
return 1
Expand Down Expand Up @@ -111,4 +111,3 @@ unset zfunction{s,}
zstyle -a ':prezto:load' pmodule 'pmodules'
pmodload "$pmodules[@]"
unset pmodules

5 changes: 2 additions & 3 deletions modules/README.md
Expand Up @@ -102,10 +102,10 @@ Node.js

Provides utility functions for Node.js and loads npm completion.

Ocaml
OCaml
-----

Initializes Ocaml package management.
Initializes OCaml package management.

OSX
---
Expand Down Expand Up @@ -192,4 +192,3 @@ Yum
---

Defines yum aliases.

1 change: 0 additions & 1 deletion modules/archive/README.md
Expand Up @@ -38,4 +38,3 @@ Authors
- [Sorin Ionescu](https://github.com/sorin-ionescu)

[1]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/archive/functions/_lsarchive
Expand Up @@ -11,4 +11,3 @@
_arguments \
'(-v --verbose)'{-v,--remove}'[verbose archive listing]' \
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z)(-.)'" && return 0

1 change: 0 additions & 1 deletion modules/archive/functions/_unarchive
Expand Up @@ -11,4 +11,3 @@
_arguments \
'(-r --remove)'{-r,--remove}'[remove archive]' \
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z|deb)(-.)'" && return 0

5 changes: 2 additions & 3 deletions modules/archive/functions/lsarchive
Expand Up @@ -30,7 +30,7 @@ while (( $# > 0 )); do
continue
fi

case "$1" in
case "$1:l" in
(*.tar.gz|*.tgz) tar t${verbose:+v}vzf "$1" ;;
(*.tar.bz2|*.tbz|*.tbz2) tar t${verbose:+v}jf "$1" ;;
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \
Expand All @@ -46,11 +46,10 @@ while (( $# > 0 )); do
|| rar ${${verbose:+v}:-l} "$1" ;;
(*.7z) 7za l "$1" ;;
(*)
print "$0: cannot list: $1" >&2
print "$0: cannot list: $1" >&2
success=1
;;
esac

shift
done

7 changes: 3 additions & 4 deletions modules/archive/functions/unarchive
Expand Up @@ -37,7 +37,7 @@ while (( $# > 0 )); do
success=0
file_name="${1:t}"
extract_dir="${file_name:r}"
case "$1" in
case "$1:l" in
(*.tar.gz|*.tgz) tar xvzf "$1" ;;
(*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;;
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \
Expand All @@ -54,8 +54,8 @@ while (( $# > 0 )); do
(*.Z) uncompress "$1" ;;
(*.zip) unzip "$1" -d $extract_dir ;;
(*.rar) unrar &> /dev/null \
&& unrar e -ad "$1" \
|| rar e -ad "$1" ;;
&& unrar x -ad "$1" \
|| rar x -ad "$1" ;;
(*.7z) 7za x "$1" ;;
(*.deb)
mkdir -p "$extract_dir/control"
Expand All @@ -76,4 +76,3 @@ while (( $# > 0 )); do
(( $success == 0 )) && (( $remove_archive == 0 )) && rm "$1"
shift
done

1 change: 0 additions & 1 deletion modules/command-not-found/README.md
Expand Up @@ -13,4 +13,3 @@ Authors

[1]: https://code.launchpad.net/command-not-found
[2]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/command-not-found/init.zsh
Expand Up @@ -15,4 +15,3 @@ elif [[ -s '/usr/share/doc/pkgfile/command-not-found.zsh' ]]; then
else
return 1
fi

1 change: 0 additions & 1 deletion modules/completion/README.md
Expand Up @@ -21,4 +21,3 @@ Authors

[1]: https://github.com/zsh-users/zsh-completions
[2]: https://github.com/sorin-ionescu/prezto/issues

2 changes: 1 addition & 1 deletion modules/completion/external
3 changes: 1 addition & 2 deletions modules/completion/init.zsh
Expand Up @@ -116,7 +116,7 @@ zstyle ':completion:*:(rm|kill|diff):*' ignore-line other
zstyle ':completion:*:rm:*' file-patterns '*:all-files'

# Kill
zstyle ':completion:*:*:*:*:processes' command 'ps -u $USER -o pid,user,comm -w'
zstyle ':completion:*:*:*:*:processes' command 'ps -u $USER -o pid,user,command -w'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;36=0=01'
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:*:kill:*' force-list always
Expand Down Expand Up @@ -146,4 +146,3 @@ zstyle ':completion:*:ssh:*' group-order users hosts-domain hosts-host users hos
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost ip6-localhost broadcasthost
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*'
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'

1 change: 0 additions & 1 deletion modules/directory/README.md
Expand Up @@ -33,4 +33,3 @@ Authors
- [Sorin Ionescu](https://github.com/sorin-ionescu)

[1]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/directory/init.zsh
Expand Up @@ -28,4 +28,3 @@ unsetopt CLOBBER # Do not overwrite existing files with > and >>.

alias d='dirs -v'
for index ({1..9}) alias "$index"="cd +${index}"; unset index

1 change: 0 additions & 1 deletion modules/dpkg/README.md
Expand Up @@ -39,4 +39,3 @@ Authors

[1]: http://wiki.debian.org/Teams/Dpkg
[2]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/dpkg/functions/deb-clone
Expand Up @@ -23,4 +23,3 @@ rm "$clone_script"
print '#!/bin/sh\n' > "$clone_script"
print "aptitude install ${package_list}\n" >> "$clone_script"
chmod +x "$clone_script"

1 change: 0 additions & 1 deletion modules/dpkg/functions/deb-history
Expand Up @@ -34,4 +34,3 @@ Commands:
EOF
;;
esac

1 change: 0 additions & 1 deletion modules/dpkg/functions/deb-kbuild
Expand Up @@ -12,4 +12,3 @@ MAKEFLAGS='' time fakeroot make-kpkg \
--revision "$(date +"%Y%m%d")" \
kernel_image \
kernel_headers

1 change: 0 additions & 1 deletion modules/dpkg/init.zsh
Expand Up @@ -55,4 +55,3 @@ alias deb-build='time dpkg-buildpackage -rfakeroot -us -uc'

# Removes all kernel images and headers, except for the ones in use.
alias deb-kclean='sudo aptitude remove -P "?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))"'

4 changes: 1 addition & 3 deletions modules/editor/README.md
Expand Up @@ -49,8 +49,7 @@ To indicate when the editor is completing, add the following to your
zstyle ':prezto:module:editor:info:completing' format '...'

Then add `$editor_info[context]`, where context is *keymap*, *insert*, or
*overwrite*, to `$PROMPT` or `$RPROMPT` and call `editor-info` in the
`prompt_name_preexec` hook function.
*overwrite*, to `$PROMPT` or `$RPROMPT`.

Authors
-------
Expand All @@ -60,4 +59,3 @@ Authors
- [Sorin Ionescu](https://github.com/sorin-ionescu)

[1]: https://github.com/sorin-ionescu/oh-my-zsh/issues

67 changes: 34 additions & 33 deletions modules/editor/init.zsh
Expand Up @@ -28,40 +28,42 @@ WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
zmodload zsh/terminfo
typeset -gA key_info
key_info=(
'Control' '\C-'
'Escape' '\e'
'Meta' '\M-'
'Backspace' "^?"
'Delete' "^[[3~"
'F1' "$terminfo[kf1]"
'F2' "$terminfo[kf2]"
'F3' "$terminfo[kf3]"
'F4' "$terminfo[kf4]"
'F5' "$terminfo[kf5]"
'F6' "$terminfo[kf6]"
'F7' "$terminfo[kf7]"
'F8' "$terminfo[kf8]"
'F9' "$terminfo[kf9]"
'F10' "$terminfo[kf10]"
'F11' "$terminfo[kf11]"
'F12' "$terminfo[kf12]"
'Insert' "$terminfo[kich1]"
'Home' "$terminfo[khome]"
'PageUp' "$terminfo[kpp]"
'End' "$terminfo[kend]"
'PageDown' "$terminfo[knp]"
'Up' "$terminfo[kcuu1]"
'Left' "$terminfo[kcub1]"
'Down' "$terminfo[kcud1]"
'Right' "$terminfo[kcuf1]"
'BackTab' "$terminfo[kcbt]"
'Control' '\C-'
'ControlLeft' '\e[1;5D \e[5D \e\e[D \eOd'
'ControlRight' '\e[1;5C \e[5C \e\e[C \eOc'
'Escape' '\e'
'Meta' '\M-'
'Backspace' "^?"
'Delete' "^[[3~"
'F1' "$terminfo[kf1]"
'F2' "$terminfo[kf2]"
'F3' "$terminfo[kf3]"
'F4' "$terminfo[kf4]"
'F5' "$terminfo[kf5]"
'F6' "$terminfo[kf6]"
'F7' "$terminfo[kf7]"
'F8' "$terminfo[kf8]"
'F9' "$terminfo[kf9]"
'F10' "$terminfo[kf10]"
'F11' "$terminfo[kf11]"
'F12' "$terminfo[kf12]"
'Insert' "$terminfo[kich1]"
'Home' "$terminfo[khome]"
'PageUp' "$terminfo[kpp]"
'End' "$terminfo[kend]"
'PageDown' "$terminfo[knp]"
'Up' "$terminfo[kcuu1]"
'Left' "$terminfo[kcub1]"
'Down' "$terminfo[kcud1]"
'Right' "$terminfo[kcuf1]"
'BackTab' "$terminfo[kcbt]"
)

# Set empty $key_info values to an invalid UTF-8 sequence to induce silent
# bindkey failure.
for key in "${(k)key_info[@]}"; do
if [[ -z "$key_info[$key]" ]]; then
key_info["$key"]=''
key_info[$key]=''
fi
done

Expand Down Expand Up @@ -206,10 +208,10 @@ bindkey -d
# Emacs Key Bindings
#

for key ("$key_info[Escape]"{B,b}) bindkey -M emacs "$key" emacs-backward-word
for key ("$key_info[Escape]"{F,f}) bindkey -M emacs "$key" emacs-forward-word
bindkey -M emacs "$key_info[Escape]$key_info[Left]" emacs-backward-word
bindkey -M emacs "$key_info[Escape]$key_info[Right]" emacs-forward-word
for key in "$key_info[Escape]"{B,b} "${(s: :)key_info[ControlLeft]}"
bindkey -M emacs "$key" emacs-backward-word
for key in "$key_info[Escape]"{F,f} "${(s: :)key_info[ControlRight]}"
bindkey -M emacs "$key" emacs-forward-word

# Kill to the beginning of the line.
for key in "$key_info[Escape]"{K,k}
Expand Down Expand Up @@ -325,4 +327,3 @@ else
fi

unset key{,map,bindings}

1 change: 0 additions & 1 deletion modules/environment/README.md
Expand Up @@ -23,4 +23,3 @@ Authors
- [Sorin Ionescu](https://github.com/sorin-ionescu)

[1]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/environment/init.zsh
Expand Up @@ -55,4 +55,3 @@ if zstyle -t ':prezto:environment:termcap' color; then
export LESS_TERMCAP_ue=$'\E[0m' # Ends underline.
export LESS_TERMCAP_us=$'\E[01;32m' # Begins underline.
fi

1 change: 0 additions & 1 deletion modules/fasd/README.md
Expand Up @@ -36,4 +36,3 @@ Authors
[3]: https://github.com/rupa/z
[4]: https://github.com/rupa/v
[5]: https://github.com/sorin-ionescu/prezto/issues

1 change: 0 additions & 1 deletion modules/fasd/init.zsh
Expand Up @@ -51,4 +51,3 @@ function fasd_cd {

# Changes the current working directory interactively.
alias j='fasd_cd -i'

1 change: 0 additions & 1 deletion modules/git/README.md
Expand Up @@ -332,4 +332,3 @@ Authors
[6]: https://github.com/sorin-ionescu/prezto/issues
[7]: https://github.com/sorin-ionescu/prezto/issues/219
[8]: http://www.kernel.org/pub/software/scm/git/docs/git-log.html

13 changes: 6 additions & 7 deletions modules/git/alias.zsh
Expand Up @@ -100,12 +100,12 @@ alias gix='git rm -r --cached'
alias giX='git rm -rf --cached'

# Log (l)
alias gl='git log --topo-order --pretty=format:${_git_log_medium_format}'
alias gls='git log --topo-order --stat --pretty=format:${_git_log_medium_format}'
alias gld='git log --topo-order --stat --patch --full-diff --pretty=format:${_git_log_medium_format}'
alias glo='git log --topo-order --pretty=format:${_git_log_oneline_format}'
alias glg='git log --topo-order --all --graph --pretty=format:${_git_log_oneline_format}'
alias glb='git log --topo-order --pretty=format:${_git_log_brief_format}'
alias gl='git log --topo-order --pretty=format:"${_git_log_medium_format}"'
alias gls='git log --topo-order --stat --pretty=format:"${_git_log_medium_format}"'
alias gld='git log --topo-order --stat --patch --full-diff --pretty=format:"${_git_log_medium_format}"'
alias glo='git log --topo-order --pretty=format:"${_git_log_oneline_format}"'
alias glg='git log --topo-order --all --graph --pretty=format:"${_git_log_oneline_format}"'
alias glb='git log --topo-order --pretty=format:"${_git_log_brief_format}"'
alias glc='git shortlog --summary --numbered'

# Merge (m)
Expand Down Expand Up @@ -179,4 +179,3 @@ alias gwc='git clean -n'
alias gwC='git clean -f'
alias gwx='git rm -r'
alias gwX='git rm -rf'

1 change: 0 additions & 1 deletion modules/git/functions/_git-hub-browse
Expand Up @@ -45,4 +45,3 @@ case "$state" in
esac

return $ret

1 change: 0 additions & 1 deletion modules/git/functions/_git-hub-shorten-url
Expand Up @@ -9,4 +9,3 @@
#

_arguments '1:url:' && return 0

1 change: 0 additions & 1 deletion modules/git/functions/_git-info
Expand Up @@ -16,4 +16,3 @@ _arguments "1:toggle:((
on\:'enable in-prompt information for the current repository'
off\:'disable in-prompt information for the current repository'
))" && return 0

1 change: 0 additions & 1 deletion modules/git/functions/_git-submodule-move
Expand Up @@ -38,4 +38,3 @@ case "$state" in
esac

return $ret

1 change: 0 additions & 1 deletion modules/git/functions/_git-submodule-remove
Expand Up @@ -24,4 +24,3 @@ done < <(
)

_describe -t submodule 'submodules' submodules && return 0

1 change: 0 additions & 1 deletion modules/git/functions/git-branch-current
Expand Up @@ -18,4 +18,3 @@ if [[ -n "$ref" ]]; then
else
return 1
fi

1 change: 0 additions & 1 deletion modules/git/functions/git-commit-lost
Expand Up @@ -18,4 +18,3 @@ git fsck 2> /dev/null \
--no-walk \
--stdin \
--pretty=format:${_git_log_oneline_format}

1 change: 0 additions & 1 deletion modules/git/functions/git-dir
Expand Up @@ -14,4 +14,3 @@ else
print "$0: not a repository: $PWD" >&2
return 1
fi

1 change: 0 additions & 1 deletion modules/git/functions/git-hub-browse
Expand Up @@ -56,4 +56,3 @@ else
print "$0: not a Git repository or remote not set" >&2
return 1
fi

1 change: 0 additions & 1 deletion modules/git/functions/git-hub-shorten-url
Expand Up @@ -20,4 +20,3 @@ if (( $+commands[curl] )); then
else
print "$0: command not found: curl" >&2
fi

0 comments on commit 54237f1

Please sign in to comment.