Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
* upstream/master:
  Set WORDCHARS in the editor module
  [Fix sorin-ionescu#422] Revert "Remove no longer necessary key bindings"
  Update external history-substring-search
  Sort Git conflict aliases
  [Fix sorin-ionescu#403] Display accented characters properly
  Correct typos in git module README
  Wrap errant long line in git module README
  Fix misspellings of the word bellow in READMEs
  Remove no longer necessary key bindings
  Update external history-substring-search
  Update external syntax-highlighting
  Update external completions
  [Fix sorin-ionescu#399] Only enable the main syntax highlighter
  Use the builtin $signals array
  Add Emacs module
  [Fix sorin-ionescu#396] Remove the osx trash function
  [Fix sorin-ionescu#398] Manually set locale

Conflicts:
	runcoms/zpreztorc
  • Loading branch information
duellj committed Apr 29, 2013
2 parents 2c11f6e + b42479a commit 168d98f
Show file tree
Hide file tree
Showing 19 changed files with 89 additions and 86 deletions.
2 changes: 1 addition & 1 deletion modules/completion/external
Submodule external updated 18 files
+2 −2 README.md
+1 −1 src/_ack
+5 −0 src/_adb
+89 −0 src/_ag
+21 −5 src/_brew
+44 −0 src/_dzen2
+36 −4 src/_gem
+93 −8 src/_git-flow
+33 −1 src/_heroku
+70 −0 src/_id3
+116 −0 src/_id3v2
+8 −1 src/_knife
+61 −0 src/_logger
+144 −81 src/_port
+52 −8 src/_sbt
+49 −12 src/_scala
+233 −0 src/_socat
+169 −0 src/_svm
3 changes: 0 additions & 3 deletions modules/completion/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ setopt AUTO_PARAM_SLASH # If completed parameter is a directory, add a traili
unsetopt MENU_COMPLETE # Do not autoselect the first completion entry.
unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor.

# Treat these characters as part of a word.
WORDCHARS='*?_-.[]~&;!#$%^(){}<>'

#
# Styles
#
Expand Down
3 changes: 3 additions & 0 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ setopt BEEP
# Variables
#

# Treat these characters as part of a word.
WORDCHARS='*?_-.[]~&;!#$%^(){}<>'

# Use human-friendly identifiers.
zmodload zsh/terminfo
typeset -gA key_info
Expand Down
33 changes: 33 additions & 0 deletions modules/emacs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Emacs
=====

Enables Emacs dependency management.

Dependency management
---------------------

[Carton][1] installs and manages Emacs packages for Emacs package development
and Emacs configuration.

This module prepends the Carton directory to the path variable to enable the
execution of `carton`.

Aliases
-------

### Carton

- `cai` installs dependencies.
- `cau` updates dependencies.
- `caI` initializes the current directory for dependency management.
- `cae` executes a command which correct dependencies.

Authors
-------

*The authors of this module should be contacted via the [issue tracker][2].*

- [Sebastian Wiesner](https://github.com/lunaryorn)

[1]: https://github.com/rejeep/carton
[2]: https://github.com/sorin-ionescu/prezto/issues
15 changes: 15 additions & 0 deletions modules/emacs/init.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Configures Emacs dependency management.
#
# Authors: Sebastian Wiesner <[email protected]>
#

# Enable Carton
if [[ -d "$HOME/.carton" ]]; then
path=($HOME/.carton/bin $path)

alias cai='carton install'
alias cau='carton update'
alias caI='carton init'
alias cae='carton exec'
fi
2 changes: 2 additions & 0 deletions modules/environment/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ zle -N self-insert url-quote-magic
#

setopt BRACE_CCL # Allow brace character class list expansion.
setopt COMBINING_CHARS # Combine zero-length punctuation characters (accents)
# with the base character.
setopt RC_QUOTES # Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'.
unsetopt MAIL_WARNING # Don't print a warning message if a mail file has been accessed.

Expand Down
29 changes: 15 additions & 14 deletions modules/git/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Git
===

Enhances the [Git][1] distributed version control system by providing aliases, functions and by exposing repository status information to prompts.
Enhances the [Git][1] distributed version control system by providing aliases,
functions and by exposing repository status information to prompts.

Git **1.7.2** is the [minimum required version][7].

Expand All @@ -12,7 +13,7 @@ Settings

The format of the [git-log][8] output is configurable via the following style,
where context is *brief*, *oneline*, and *medium*, which will be passed to the
`--prety=format:` switch.
`--pretty=format:` switch.

zstyle ':prezto:module:git:log:context' format ''

Expand All @@ -38,8 +39,8 @@ Aliases
- `gbc` creates a new branch.
- `gbl` lists branches and their commits.
- `gbL` lists local and remote branches and their commits.
- `gbs` lists branches and their commits with ancestery graphs.
- `gbS` lists local and remote branches and their commits with ancestery
- `gbs` lists branches and their commits with ancestry graphs.
- `gbS` lists local and remote branches and their commits with ancestry
graphs.
- `gbx` deletes a branch.
- `gbX` deletes a branch irrespective of its merged status.
Expand All @@ -65,6 +66,16 @@ Aliases
- `gcs` displays various types of objects.
- `gcl` displays lost commits.

### Conflict

- `gCl` lists unmerged files.
- `gCa` adds unmerged file contents to the index.
- `gCe` executes merge-tool on all unmerged file.
- `gCo` checks out our changes for unmerged paths.
- `gCO` checks out our changes for all unmerged paths.
- `gCt` checks out their changes for unmerged paths.
- `gCT` checks out their changes for all unmerged paths.

### Data

- `gd` displays information about files in the index and the work tree.
Expand Down Expand Up @@ -103,16 +114,6 @@ Aliases
- `gix` removes files/directories from the index (recursively).
- `giX` removes files/directories from the index (recursively and forced).

### Conflict

- `gCl` lists unmerged files.
- `gCa` adds unmerged file contents to the index.
- `gCe` executes merge-tool on all unmerged file.
- `gCo` checks out our changes for unmerged paths.
- `gCO` checks out our changes for all unmerged paths.
- `gCt` checks out their changes for unmerged paths.
- `gCT` checks out their changes for all unmerged paths.

### Log

- `gl` displays the log.
Expand Down
18 changes: 9 additions & 9 deletions modules/git/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ alias gcR='git reset "HEAD^"'
alias gcs='git show'
alias gcl='git-commit-lost'

# Conflict (C)
alias gCl='git status | sed -n "s/^.*both [a-z]*ed: *//p"'
alias gCa='git add $(gCl)'
alias gCe='git mergetool $(gCl)'
alias gCo='git checkout --ours --'
alias gCO='gCo $(gCl)'
alias gCt='git checkout --theirs --'
alias gCT='gCt $(gCl)'

# Data (d)
alias gd='git ls-files'
alias gdc='git ls-files --cached'
Expand Down Expand Up @@ -90,15 +99,6 @@ alias giR='git reset --patch'
alias gix='git rm -r --cached'
alias giX='git rm -rf --cached'

# Conflict (C)
alias gCl='git status | sed -n "s/^.*both [a-z]*ed: *//p"'
alias gCa='git add $(gCl)'
alias gCe='git mergetool $(gCl)'
alias gCo='git checkout --ours --'
alias gCO='gCo $(gCl)'
alias gCt='git checkout --theirs --'
alias gCT='gCt $(gCl)'

# 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}'
Expand Down
10 changes: 1 addition & 9 deletions modules/helper/functions/add-zsh-trap
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@
# Sorin Ionescu <[email protected]>
#

# Trap signals were generated with 'kill -l'.
# DEBUG, EXIT, and ZERR are Zsh signals.
_trap_signals=(
ABRT ALRM BUS CHLD CONT EMT FPE HUP ILL INFO INT IO KILL PIPE PROF QUIT
SEGV STOP SYS TERM TRAP TSTP TTIN TTOU URG USR1 USR2 VTALRM WINCH XCPU XFSZ
DEBUG EXIT ZERR
)

# Adds a function name to a list to be called when a trap is triggered.
function add-zsh-trap {
if (( $# < 2 )); then
print "usage: $0 type function" >&2
return 1
fi

if [[ -z "$_trap_signals[(r)$1]" ]]; then
if [[ -z "$signals[(r)$1]" ]]; then
print "$0: unknown signal: $1" >&2
return 1
fi
Expand Down
2 changes: 1 addition & 1 deletion modules/history-substring-search/external
1 change: 0 additions & 1 deletion modules/osx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Functions
- `pfd` prints the current _Finder_ directory.
- `pfs` prints the current _Finder_ selection.
- `tab` creates a new tab (works in both _Terminal_ and [_iTerm_][3]).
- `trash` moves files and folders to _Trash_.

Authors
-------
Expand Down
27 changes: 0 additions & 27 deletions modules/osx/functions/trash

This file was deleted.

2 changes: 1 addition & 1 deletion modules/prompt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ including a function that displays help or a function used to preview it.

**Do not call this function directly.**

The most basic example of this function can be seen bellow.
The most basic example of this function can be seen below.

function prompt_name_setup {
PROMPT='%m%# '
Expand Down
2 changes: 1 addition & 1 deletion modules/syntax-highlighting/external
2 changes: 1 addition & 1 deletion modules/syntax-highlighting/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ source "${0:h}/external/zsh-syntax-highlighting.zsh"
# Set the highlighters.
zstyle -a ':prezto:module:syntax-highlighting' highlighters 'ZSH_HIGHLIGHT_HIGHLIGHTERS'
if (( ${#ZSH_HIGHLIGHT_HIGHLIGHTERS[@]} == 0 )); then
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)
fi

2 changes: 1 addition & 1 deletion runcoms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ small as possible and should only define environment variables.
### zprofile

This file is similar to zlogin, but it is sourced before zshrc. It was added
for [KornShell][1] fans. See the description of zlogin bellow for what it may
for [KornShell][1] fans. See the description of zlogin below for what it may
contain.

zprofile and zlogin are not meant to be used concurrently but can be done so.
Expand Down
17 changes: 1 addition & 16 deletions runcoms/zpreztorc
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,11 @@ zstyle ':prezto:module:ssh-agent' identities 'id_rsa'
#

# Set syntax highlighters.
# By default main, brackets, and cursor are enabled.
# By default, only the main highlighter is enabled.
zstyle ':prezto:module:syntax-highlighting' color 'yes'
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'cursor' \
# 'root'

#
# Terminal
#

# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'

#
# Tmux
#

# Auto start a session when Zsh is launched.
# zstyle ':prezto:module:tmux' auto-start 'yes'

2 changes: 1 addition & 1 deletion runcoms/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export PAGER='less'
#

if [[ -z "$LANG" ]]; then
eval "$(locale)"
export LANG='en_US.UTF-8'
fi

#
Expand Down
3 changes: 3 additions & 0 deletions runcoms/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ alias my="mysql -u root -pmeh"

# List all git aliases
alias git_aliases="alias | ag --nocolor '^g.*git'"

# Drush
alias dr='drush'

0 comments on commit 168d98f

Please sign in to comment.