This reverts commit 1493d88e3f, made
to put a deprecated notice on rails3 and rails4 plugins, so that
users would migrate to the unified rails plugin.
It's been 1.5 years since that, so everyone should be migrated to
the good one.
* Moved git information to left prompt, with
support for:
* +ZSH_THEME_GIT_PROMPT_UNTRACKED, MODIFIED,
STASHED, ADDED, UPSTREAM STATUS
(if applicable)
* Removed right prompt
* Refactored following Google's guidelines for
scripts [ http://goo.gl/oJSXH2 ]
* Using local variables where applicable
Some minor changes to the aliases.
* removed php artisan dump-autoload since is no longer a command in laravel 5
* updated the la5routes alias to the new version of the command
* added a la5vendor alias to publish assets from vendor packages
Without this change, whether a function can invoke 'subl' depends on the order in which modules are loaded. With this change, the order doesn't matter.
zsh resolves aliases at parse time not run time, which means if you invoke an alias from a function, the alias must be defined before the function.
See http://stackoverflow.com/a/25532276/893113 which refers to an explanation of this limitation.
For code which may be used non-interactively, the recommend workaround is to use functions instead of aliases.
This adds two new theme functions for git:
* `git_prompt_behind` works in a identical fashion to `git_prompt_ahead`
and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if
the branch is behind.
* `git_prompt_remote` will output one format variable if the branch
exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another
if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`).
The old `git_prompt_ahead` has been changed. Using git log is subject
to formatting in .gitconfig, which can be overridden and will break
this function. Relying on rev-list is much more stable.