Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* https://github.com/sorin-ionescu/prezto:
  [Fix sorin-ionescu#347] Move 'users' from tag-order to group-order
  Add an alias to ammend a git commit, including the message
  Update external syntax-highlighting
  Update external completions
  [Fix sorin-ionescu#348] Clarify how GNU utilities are wrapped
  [Fix sorin-ionescu#338] Remove vi jk and kj bindings
  Check for the existence of .zcompdump before compiling
  Fix auto completion for SSH hosts when saved with a non-standard port
  [Fix sorin-ionescu#335] Prevent rbenv from hashing gems at startup
  Fix a typo in git documentation
  • Loading branch information
Caleb Epstein committed Dec 24, 2012
2 parents 3b82555 + 5d4282c commit 1f39028
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/completion/external
Submodule external updated 8 files
+3 −1 src/_bundle
+476 −0 src/_cabal
+58 −0 src/_docpad
+10 −0 src/_gem
+17 −9 src/_knife
+26 −13 src/_lein
+86 −0 src/_mussh
+85 −0 src/_nvm
6 changes: 3 additions & 3 deletions modules/completion/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ zstyle ':completion::*:(-command-|export):*' fake-parameters ${${${_comps[(I)-va

# Populate hostname completion.
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
${=${=${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//\]:[0-9]*/ }//,/ }//\[/ }
${=${(f)"$(cat /etc/hosts(|)(N) <<(ypcat hosts 2>/dev/null))"}%%\#*}
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
Expand Down Expand Up @@ -144,8 +144,8 @@ fi
# SSH/SCP/RSYNC
zstyle ':completion:*:(scp|rsync):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
zstyle ':completion:*:(scp|rsync):*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
zstyle ':completion:*:ssh:*' group-order users hosts-domain hosts-host users hosts-ipaddr
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::*'
Expand Down
4 changes: 0 additions & 4 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,6 @@ bindkey -M vicmd "v" edit-command-line
bindkey -M vicmd "u" undo
bindkey -M vicmd "$key_info[Control]R" redo

# Switch to command mode.
bindkey -M viins "jk" vi-cmd-mode
bindkey -M viins "kj" vi-cmd-mode

if (( $+widgets[history-incremental-pattern-search-backward] )); then
bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward
Expand Down
3 changes: 2 additions & 1 deletion modules/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Aliases
- `gcO` checks out paths to work tree using the *HEAD* commit.
- `gcf` amends the tip of the current branch using the same log message as
*HEAD*.
- `gcF` amends the tip of the current branch.
- `gcp` applies changes introduced by existing commits.
- `gcP` applies changes introduced by existing commits without committing.
- `gcr` reverts existing commits by reverting patches and recording new
Expand Down Expand Up @@ -292,7 +293,7 @@ Second, format how the above attributes are displayed in prompts.
'prompt' ' git(%b)' \
'rprompt' '[%R]'

Last, add `$git_info[prompt]` to `$PROMPT` and `$git_info[prompt]` to
Last, add `$git_info[prompt]` to `$PROMPT` and `$git_info[rprompt]` to
`$RPROMPT` respectively and call `git-info` in the `prompt_name_preexec` hook
function.

Expand Down
1 change: 1 addition & 0 deletions modules/git/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ alias gcm='git commit --message'
alias gco='git checkout'
alias gcO='git checkout HEAD --'
alias gcf='git commit --amend --reuse-message HEAD'
alias gcF='git commit --amend'
alias gcp='git cherry-pick --ff'
alias gcP='git cherry-pick --no-commit'
alias gcr='git revert'
Expand Down
4 changes: 2 additions & 2 deletions modules/gnu-utility/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Installing GNU utilities on non-GNU systems in `$PATH` without a prefix, i.e.
`ls` instead of `gls`, is not recommended since scripts that target other
utilities will be broken.

However, for interactive use, prefixed commands can be wrapped in their
non-prefixed counterparts.
This module wraps GNU utilities in functions without a prefix for interactive
use.

This module must be loaded **before** the *utility* module.

Expand Down
4 changes: 2 additions & 2 deletions modules/ruby/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
# Load manually installed rbenv into the shell session.
elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
path=("$HOME/.rbenv/bin" $path)
eval "$(rbenv init - zsh)"
eval "$(rbenv init - --no-rehash zsh)"

# Load package manager installed rbenv into the shell session.
elif (( $+commands[rbenv] )); then
eval "$(rbenv init - zsh)"
eval "$(rbenv init - --no-rehash zsh)"

# Install local gems according to operating system conventions.
else
Expand Down
2 changes: 1 addition & 1 deletion modules/syntax-highlighting/external
2 changes: 1 addition & 1 deletion runcoms/zlogin
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi

Expand Down

0 comments on commit 1f39028

Please sign in to comment.