diff --git a/modules/README.md b/modules/README.md index 16754fcb..2d89b1d9 100644 --- a/modules/README.md +++ b/modules/README.md @@ -8,7 +8,7 @@ Load modules in *zpreztorc*. The order matters. Archive ------- -Provides functions to extract and list popular archive formats. +Provides functions to list and extract archives. Command-Not-Found ----------------- diff --git a/modules/archive/README.md b/modules/archive/README.md index 37dbf121..64b95df7 100644 --- a/modules/archive/README.md +++ b/modules/archive/README.md @@ -1,13 +1,13 @@ Archive ======= -Provides functions to extract and list popular archive formats. +Provides functions to list and extract archives. Functions --------- - - `extract` extracts the contents of one or more archives. - - `ls-archive` lists the contents of one or more archives. + - `lsarchive` lists the contents of one or more archives. + - `unarchive` extracts the contents of one or more archives. Supported Formats ----------------- diff --git a/modules/archive/functions/_ls-archive b/modules/archive/functions/_lsarchive similarity index 85% rename from modules/archive/functions/_ls-archive rename to modules/archive/functions/_lsarchive index 00453c4f..516a8a33 100644 --- a/modules/archive/functions/_ls-archive +++ b/modules/archive/functions/_lsarchive @@ -1,8 +1,8 @@ -#compdef ls-archive +#compdef lsarchive #autoload # -# Completes ls-archive. +# Completes lsarchive. # # Authors: # Sorin Ionescu diff --git a/modules/archive/functions/_extract b/modules/archive/functions/_unarchive similarity index 85% rename from modules/archive/functions/_extract rename to modules/archive/functions/_unarchive index 901a8489..a446cb4a 100644 --- a/modules/archive/functions/_extract +++ b/modules/archive/functions/_unarchive @@ -1,8 +1,8 @@ -#compdef extract +#compdef unarchive #autoload # -# Completes extract. +# Completes unarchive. # # Authors: # Sorin Ionescu diff --git a/modules/archive/functions/ls-archive b/modules/archive/functions/lsarchive similarity index 95% rename from modules/archive/functions/ls-archive rename to modules/archive/functions/lsarchive index 99ebde6e..bac540f8 100644 --- a/modules/archive/functions/ls-archive +++ b/modules/archive/functions/lsarchive @@ -1,5 +1,5 @@ # -# Lists the contents of popular archive formats. +# Lists the contents of archives. # # Authors: # Sorin Ionescu diff --git a/modules/archive/functions/extract b/modules/archive/functions/unarchive similarity index 97% rename from modules/archive/functions/extract rename to modules/archive/functions/unarchive index 70fac4d8..36fe85b6 100644 --- a/modules/archive/functions/extract +++ b/modules/archive/functions/unarchive @@ -1,5 +1,5 @@ # -# Extracts the contents of popular archive formats. +# Extracts the contents of archives. # # Authors: # Sorin Ionescu diff --git a/modules/pacman/functions/pacman-list-disowned b/modules/pacman/functions/pacman-list-disowned index d6b6f289..2cd8a92b 100644 --- a/modules/pacman/functions/pacman-list-disowned +++ b/modules/pacman/functions/pacman-list-disowned @@ -6,7 +6,7 @@ # Sorin Ionescu # -local tmp="${TMPDIR:-/tmp}/pacman-disowned-$UID-$$" +local tmp="$TMPDIR/pacman-disowned-$UID-$$" local db="$tmp/db" local fs="$tmp/fs" diff --git a/modules/rsync/README.md b/modules/rsync/README.md index 2d2e6566..a2b62c4f 100644 --- a/modules/rsync/README.md +++ b/modules/rsync/README.md @@ -23,6 +23,6 @@ Authors - [Sorin Ionescu](https://github.com/sorin-ionescu) [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 diff --git a/modules/rsync/init.zsh b/modules/rsync/init.zsh index c3b3b577..afb9192a 100644 --- a/modules/rsync/init.zsh +++ b/modules/rsync/init.zsh @@ -17,7 +17,7 @@ fi _rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' # 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 _rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change" fi diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index b287cbb2..0303d5a3 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -28,6 +28,8 @@ else if [[ "$OSTYPE" == darwin* ]]; then export GEM_HOME="$HOME/Library/Ruby/Gems/1.8" path=("$GEM_HOME/bin" $path) + else + path=($HOME/.gem/ruby/*/bin(N) $path) fi fi @@ -58,4 +60,3 @@ if (( $+commands[bundle] )); then && print vendor/bundle >>! .gitignore \ && print vendor/cache >>! .gitignore' fi - diff --git a/runcoms/zshenv b/runcoms/zshenv index 0f8738bf..9ff39e06 100644 --- a/runcoms/zshenv +++ b/runcoms/zshenv @@ -64,10 +64,13 @@ fi # Temporary Files # -if [[ -d "$TMPDIR" ]]; then - export TMPPREFIX="${TMPDIR%/}/zsh" - if [[ ! -d "$TMPPREFIX" ]]; then - mkdir -p "$TMPPREFIX" - fi +if [[ ! -d "$TMPDIR" ]]; then + export TMPDIR="/tmp/$USER" + mkdir -p -m 700 "$TMPDIR" +fi + +TMPPREFIX="${TMPDIR%/}/zsh" +if [[ ! -d "$TMPPREFIX" ]]; then + mkdir -p "$TMPPREFIX" fi