1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-12 22:21:13 +00:00
Commit Graph

1680 Commits

Author SHA1 Message Date
Antoine Rahier
6a8f1c6b16 Add powerlevel9k theme 2017-08-31 18:31:09 -05:00
Jeff Widman
ba0cb8afd8 Add missing highlighter to readme
This was added to `.zpreztorc` in 4f19700919 but forgot to add it here.
2017-08-29 16:54:12 -07:00
Jeff Widman
46de6fef77 Swap italics to code formatting and add hyperlink 2017-08-29 16:53:56 -07:00
Jeff Widman
37c61a058c Document that fasd is now bundled with prezto
Document that `fasd` is now bundled with prezto (19990c8025) and that it's a fallback to a manually installed version (04bfb5131b).
2017-08-29 16:52:22 -07:00
Jeff Widman
38fb41d66e Use backticks rather than italics for paths
This is more typical with what I observe elsewhere
2017-08-29 16:52:06 -07:00
Jeff Widman
727f094b0f [python] cleanup readme formatting
Anyone want some backticks? :-)
2017-08-29 16:51:27 -07:00
Jeff Widman
8fa14ed72f Drop easy_install in docs, everyone now uses pip (#1436) 2017-08-29 16:04:44 -07:00
Jeff Widman
58bcc43bf9 Fix typo 2017-08-29 15:18:30 -07:00
Jeff Widman
98f37b3c2f Update reference to Bombich's rsync 2017-08-29 16:33:06 -05:00
Foo Chuan Wei
a7fb175b20 Fix English mistakes in the autosuggestions module README.md (#1444)
* Change 'conjuncture' to 'conjunction'
* Fix ambiguous pronoun references
2017-08-28 19:17:45 -07:00
Greg Anders
9c528efa60 Explicitly set PYENV_ROOT 2017-08-26 16:21:45 -05:00
Indrajit Raychaudhuri
83ab314b77 [python] Refine pyenv based virtualenv management
Now that pyenv plugins availability is detected by directly probing
'pyenv', we need to rely on the same mechanism consistently.

Further, we perform available pyenv plugin scan with native zsh
techniques instead of relying on external commands.
2017-08-18 09:35:52 -05:00
Indrajit Raychaudhuri
5ffc8a07f1 [python] Ensure availability of virtualenvwrapper file before sourcing it 2017-08-18 07:56:10 -05:00
Jeef
cab4ac54ec Update prompt_sorin_setup
Addressing a type - and switching from a custom orange to yellow (from default color list) for prompt.
2017-08-17 23:27:26 -05:00
Jeef
4c272a20f6 Update prompt_sorin_setup
Moved ` ` after the virtual env info into the `zstyle` call and out of `RPROMPT`
2017-08-17 23:27:26 -05:00
Jeef
5b244eeadb Update prompt_sorin_setup
Added python support
2017-08-17 23:27:26 -05:00
Zach Whaley
3194442759 Edit pyenv virtualenv-init check to support non-brew installations
If the pyenv virtualenv plugin is installed using the [pyenv-installer][1]
app script or directly via a [Git clone][2], then the pyenv-virtualenv-init
executable, that the `pyenv virtualenv-init` command uses, will not
exist in the user's PATH and therefore cannot be found using
`$commands[pyenv-virtualenv-init]`.
Installing the pyenv-virtualenv plugin in this manner is common among Linux users.

Using the pyenv `commands` command, which lists all commands pyenv can
run, we can find if the virtualenv-init command is available to pyenv
and subsequently the virtualenv plugin, without relying on
pyenv-virtualenv-init to exist in the user's PATH.

[1]: https://github.com/pyenv/pyenv-installer
[2]: https://github.com/pyenv/pyenv-virtualenv#installing-as-a-pyenv-plugin
2017-08-17 22:50:17 -05:00
Jeff Widman
9dfa8a67f6 Fix typo 2017-08-16 14:58:21 -07:00
Jeff Widman
e6af5f2e91 Fix typo 2017-08-16 13:52:40 -05:00
Kaleb Elwert
dd1133d32e prompt: remove unneeded prompt_opts from smiley prompt 2017-08-10 16:23:53 -07:00
Kaleb Elwert
2f867d6f22 Revert "prompt: remove prompt_sp from prompt_smiley_setup as it is not needed"
This reverts commit 24e5e49ff2.
2017-08-10 16:21:46 -07:00
Kaleb Elwert
24e5e49ff2 prompt: remove prompt_sp from prompt_smiley_setup as it is not needed 2017-08-10 13:39:49 -07:00
Kaleb Elwert
730fc4690e prompt: add sp option to prompt_setup functions
This was a change in zsh 5.4.1 where prompt_sp is now reset on calls to
prompt, unlike previous behavior where it was set by default. This
restores the previous default behavior.

Refs #1423, but is not a complete fix because we need to wait for
external prompts to update as well.
2017-08-10 11:23:30 -07:00
Indrajit Raychaudhuri
5e295b0835 [prompt] Remove spurious duplicate section
Remove duplication 'Prompt Display Length' section.
Also, adjust wrapping for `~`.
2017-08-09 15:07:38 -05:00
Indrajit Raychaudhuri
8d7e3e27c7 [python] Detect availability of virtualenv plugins as well as pyenv
Just having 'pyenv' available doesn't imply availability of virtualenv pyenv
plugins. Check for availability of virtualenv plugins as well before attempting
to use pyenv wrapper for virtualenv.
2017-08-04 13:46:14 -05:00
Indrajit Raychaudhuri
a60499f933 [general] Miscellaneous cleanup and formatting 2017-08-04 13:45:56 -05:00
Mauro Locatelli
7b5196ca66 ssh: check ssh-askpass presence under Linux
Check the presence of `ssh-askpass`, if `/usr/lib/ssh/x11-ssh-askpass`
is present I use it otherwise I require the passphrase in the standard
method
2017-08-01 10:05:58 -05:00
Kaleb Elwert
3f556400e7 Avoid setting TMPDIR and make sure all modules handle that properly
Fixes #1206
2017-07-28 10:24:51 -07:00
Indrajit Raychaudhuri
b3c7d21d31 Adjust GitHub templates with commented lines 2017-07-28 00:43:39 -05:00
Indrajit Raychaudhuri
591d087ccc [completion] Allow ignores for '/etc/hosts' entries to be dynamic
By keeping the variable `_etc_host_ignores` around, it can be resolved
lazily which is turn should allow selective ignores on a per invocation
basis.

Also, `'\#'` doesn't need to be added to `_etc_host_ignores` anymore.
It is enforced inline.
2017-07-27 12:43:22 -05:00
Indrajit Raychaudhuri
9b6bf4a7cd [completion] Support ignoring '/etc/hosts' entries in host completion
Entries from static '/etc/hosts' can now be ignored via 'zstyle' based
configuration. Both IP address and corresponding hostname will be ignored
during host completion. However, some of the entries ignored from '/etc/hosts'
still might appear during completion because of their presence in 'ssh'
configuration ('~/.ssh/config') or history ('~/.ssh/ssh_hosts',
'~/.ssh/known_hosts' etc.).
2017-07-26 23:42:34 -05:00
Indrajit Raychaudhuri
19435b16ea [python] Improve and document virtualenvwrapper initialization flow
Changes:
* Simplify zstyle name `skip-virtualenvwrapper-init` to `initialize`
  avoiding double negation in name
* Always perform `eval (pyenv virtualenv-init -)` at initialization
* Prefer `virtualenvwrapper_lazy` over `virtualenvwrapper` when available
* Honor `VIRTUALENVWRAPPER_VIRTUALENV` if it is defined.
* Document about `VIRTUALENVWRAPPER_PYTHON` and `VIRTUALENVWRAPPER_VIRTUALENV`
  (this would be particularly important in macOS after recent homebrew update)
* Add additional documentation for `initialize` in _README.md_ and _zpreztorc_
* Add aliases `py2`, `py3` as shortcut for `python2`, `python3` respectively
2017-07-26 01:42:31 -05:00
Kaleb Elwert
7e7124e84a Update agnoster prompt to include security fix
Fixes #1267
2017-07-25 14:15:07 -07:00
Jeff Widman
09fe5191e7 Merge pull request #1404 from sorin-ionescu/jeffwidman-fix-typos
Fix typos
2017-07-25 03:08:45 -06:00
Jeff Widman
0fc49ac4f0 Fix typos 2017-07-25 03:07:59 -06:00
Stephen Larew
e364eac8f5 ssh: update README to reflect macOS changes 2017-07-24 11:56:48 -07:00
Kaleb Elwert
9bdc1b35d5 Migrate sorin prompt to zsh-async (#1385)
This includes some improvements by @indrajitr in addition to the main migration.

The first step was to avoid PROMPT and RPROMPT modification when possible (which may help resolve some other issues as well relating to zsh crashes with the sorin prompt) then update the displayed git information in a separate variable rather than a command.

We use zsh-async for creating and running background tasks. The sorin prompt uses it to update git info without blocking the prompt from displaying (because of how long it can take). In the future it may be worth moving more tasks and more prompts to using this.

The move to zsh-async does make the git prompt slower in some circumstances (most noticeable in large repos), but this is a worthwhile tradeoff to avoid the cache file which had a number of potential security holes.

We have also switched to adding zsh-async as an external submodule (rather than the version bundled with pure) which may cause some migration headaches, but it will be worth it in the long run.
2017-07-24 11:55:02 -07:00
Samantha McVey
9f1a41de90 Fix unbound keys in vicmd/viins mode
Previously I made a change to try and bind these unbound keys to the main
keymap in thoughts that in vicmd or viins mode it would fallback if it wasn't
bound in vicmd/viins mode. This turned out not to be the case.

Explicitly bind the keys in both viins and vicmd mode as works properly.
2017-07-24 10:26:19 -07:00
Indrajit Raychaudhuri
d6276e8025 [osx] Support custom keyword used by mand to open man pages in Dash.app
`zstyle` based customization is now avaialble in *zpreztorc*.
2017-07-23 13:19:04 -05:00
Indrajit Raychaudhuri
8846db9d4d [node] Always quote files when source-ing 2017-07-23 00:35:56 -05:00
Indrajit Raychaudhuri
eddbdd9416 Update submodules URLs to use git URLs explicitly
Even though GitHub redirects git calls based on user-agent, using git URLs
consistently is preferable.
2017-07-22 14:12:17 -05:00
Indrajit Raychaudhuri
24b710f545 [general] Fix incorrect fenced code indentation 2017-07-22 13:57:43 -05:00
Indrajit Raychaudhuri
a60fe47359 [utility] Refactor rsync_scp wrapper function and add completion support
Changes:
- Rename `rsync_scp_wrap` to `noremoteglob` and make it more generally usable
- Enable completion support for commands wrapped with `noremoteglob`
- Tighten up internal variable usages
- Update documentation for 'noremoteglob' function
2017-07-22 13:13:52 -05:00
Indrajit Raychaudhuri
17a59bada7 [prompt] Rename helper function promptpwd to prompt-pwd for consistency
Changes:
* In prezto, function names are hyphenated ('-') by convention,
  rename `promptpwd` to `prompt-pwd` accordingly.
* Unset local variable `current_pwd` proactively.
* Tweak additional documentation for `prompt-pwd`.
2017-07-22 13:13:00 -05:00
Indrajit Raychaudhuri
ac628c9059 [general] Switch code block formatting to use fence formatting
Changes:
* Indented code block doesn't support syntax highlighting, use fenced
formatting (```) instead for better syntax highlighting
* Wrap commands/functions in backticks
* Typo fixes
2017-07-22 13:11:29 -05:00
Indrajit Raychaudhuri
bcbaea27af [python] Detect actual pip command available for generating completion cache
We cannot always assume availability of `pip`, it can be `pip2` or `pip3`
instead. We detect the first available one and use it for generating the
completion cache.
2017-07-22 13:08:33 -05:00
Indrajit Raychaudhuri
608f291ad3 [utility] Reuse interactive aliases when 'safe-ops' is set
When `safe-ops` is set, we can reuse the aliases that are already available.
2017-07-21 09:35:14 -07:00
Kaleb Elwert
2db7f62c2b [homebrew] Add documentation for brewo and casko 2017-07-19 10:41:39 -07:00
Karim Benbouali
46e34d30b8 module(homebrew): add outdated options for cask and brew commands 2017-07-19 08:26:18 -05:00
Indrajit Raychaudhuri
cb4be65d29 [utility] Update documentation for 'safe-ops'
Update formatting and wordings to be more consistent with rest of prezto
documentation.
2017-07-17 19:57:32 -05:00