1
0
Fork 0

Merge remote-tracking branch 'upstream/master'

pull/666/head
Chauncey Garrett 12 years ago
commit eeee36ce74

@ -8,7 +8,7 @@ Load modules in *zpreztorc*. The order matters.
Archive Archive
------- -------
Provides functions to extract and list popular archive formats. Provides functions to list and extract archives.
Command-Not-Found Command-Not-Found
----------------- -----------------

@ -1,13 +1,13 @@
Archive Archive
======= =======
Provides functions to extract and list popular archive formats. Provides functions to list and extract archives.
Functions Functions
--------- ---------
- `extract` extracts the contents of one or more archives. - `lsarchive` lists the contents of one or more archives.
- `ls-archive` lists the contents of one or more archives. - `unarchive` extracts the contents of one or more archives.
Supported Formats Supported Formats
----------------- -----------------

@ -1,8 +1,8 @@
#compdef ls-archive #compdef lsarchive
#autoload #autoload
# #
# Completes ls-archive. # Completes lsarchive.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>

@ -1,8 +1,8 @@
#compdef extract #compdef unarchive
#autoload #autoload
# #
# Completes extract. # Completes unarchive.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>

@ -1,5 +1,5 @@
# #
# Lists the contents of popular archive formats. # Lists the contents of archives.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>

@ -1,5 +1,5 @@
# #
# Extracts the contents of popular archive formats. # Extracts the contents of archives.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>

@ -6,7 +6,7 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
local tmp="${TMPDIR:-/tmp}/pacman-disowned-$UID-$$" local tmp="$TMPDIR/pacman-disowned-$UID-$$"
local db="$tmp/db" local db="$tmp/db"
local fs="$tmp/fs" local fs="$tmp/fs"

@ -23,6 +23,6 @@ Authors
- [Sorin Ionescu](https://github.com/sorin-ionescu) - [Sorin Ionescu](https://github.com/sorin-ionescu)
[1]: http://rsync.samba.org [1]: http://rsync.samba.org
[2]: http://www.bombich.com/rsync.html [2]: http://help.bombich.com/kb/overview/credits#opensource
[3]: https://github.com/sorin-ionescu/prezto/issues [3]: https://github.com/sorin-ionescu/prezto/issues

@ -17,7 +17,7 @@ fi
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' _rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
# Mac OS X and HFS+ Enhancements # Mac OS X and HFS+ Enhancements
# http://www.bombich.com/rsync.html # http://help.bombich.com/kb/overview/credits#opensource
if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
_rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change" _rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change"
fi fi

@ -28,6 +28,8 @@ else
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
export GEM_HOME="$HOME/Library/Ruby/Gems/1.8" export GEM_HOME="$HOME/Library/Ruby/Gems/1.8"
path=("$GEM_HOME/bin" $path) path=("$GEM_HOME/bin" $path)
else
path=($HOME/.gem/ruby/*/bin(N) $path)
fi fi
fi fi
@ -58,4 +60,3 @@ if (( $+commands[bundle] )); then
&& print vendor/bundle >>! .gitignore \ && print vendor/bundle >>! .gitignore \
&& print vendor/cache >>! .gitignore' && print vendor/cache >>! .gitignore'
fi fi

@ -64,10 +64,13 @@ fi
# Temporary Files # Temporary Files
# #
if [[ -d "$TMPDIR" ]]; then if [[ ! -d "$TMPDIR" ]]; then
export TMPPREFIX="${TMPDIR%/}/zsh" export TMPDIR="/tmp/$USER"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX" mkdir -p "$TMPPREFIX"
fi fi
fi

Loading…
Cancel
Save