forked from sorin-ionescu/prezto
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks from @sorin-ionescu. Improve README.
- Loading branch information
Wei Dai
committed
Jul 1, 2012
1 parent
1e71230
commit 33b178e
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ if (( ! $+commands[fasd] )); then | |
fi | ||
|
||
cache_file="${0:h}/cache.zsh" | ||
if [[ "$(which fasd)" -nt "$cache_file" || ! -s "$cache_file" ]]; then | ||
if [[ "${commands[fasd]}" -nt "$cache_file" || ! -s "$cache_file" ]]; then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
clvv
Owner
|
||
# Base init arguments | ||
init_args='posix-alias zsh-hook' | ||
|
||
|
@@ -29,7 +29,6 @@ source "$cache_file" | |
unset cache_file init_args | ||
|
||
alias j='z' # For autojump converts | ||
alias o="a -e $aliases[o]" # Quickly open paths with open. | ||
alias v='f -t -e vim -b viminfo' # Quickly open files with vim. | ||
|
||
for keymap in 'emacs' 'viins'; do | ||
|
That's wrong. It should be
if [[ ! -s "$cache_file" ]]; then
and nothing more.