1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-07-06 00:19:43 +00:00
Commit Graph

226 Commits

Author SHA1 Message Date
9b2744cfdf Merge upstream/master 2020-03-25 12:18:59 +01:00
romkatv
f479f37ead prompt: update powerlevel10k submodule to v1.5.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.5.0
2020-03-22 14:07:08 -07:00
romkatv
cfeb8cd6c9 prompt: update powerlevel10k submodule to v1.4.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.4.0
2020-03-16 09:32:50 -07:00
0c22054a49 Merge upstream/master 2020-03-09 19:51:20 +01:00
romkatv
d955fbdeb7 prompt: update powerlevel10k submodule to v1.3.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.3.0
2020-03-06 10:04:57 -08:00
romkatv
92e6b37f73 prompt: update powerlevel10k submodule to v1.2.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.2.0
2020-02-27 13:17:43 -08:00
47b37b22ea Merge upstream/master 2020-02-20 18:04:49 +01:00
Federico Frenguelli
e9f281cd6f Updated prompt pure to version 1.11.0 2020-02-11 10:09:48 -08:00
4b32ae96db Merge upstream/master 2020-02-06 19:48:41 +01:00
romkatv
4bcbe2ee68 prompt: update powerlevel10k submodule to v1.1
==[ Changes since the last release ]==

- Complete documentation overhaul. Powerlevel10k documentation is no
  longer embarrassing (still no reference though; coming "soon").
- Worker pool and recursive globber have been rewritten for better
  performance and simpler code. Performance improvements (large
  speedup means an improvement in big-O and at least 2x in typical
  configurations):
  - +15% prompt speedup across the board.
  - Large prompt speedup for several rarely used prompt segments
    (disk_usage, ram, etc.).
  - Large prompt speedup for a few prompt segments on macOS
    (battery, swap, etc.).
  - Large prompt speedup when many prompt segments are active
    simultaneously.
  - Large prompt speedup when filesystem is slow.
- New prompt segments: nix_shell and timewarrior. Both enabled by
  default.
- Configuration wizard:
  - Many new options for Pure style (color scheme, number of lines,
    etc.)
  - Several new options for 8-color version of Pure style.
  - Better support for terminals with less than 256 colors.
  - Lean, Classic and Rainbow style configs now have disk_usage and
    swap prompt segments (disabled by default).
  - POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER now contains 'oc'.
- New parameters:
  - POWERLEVEL9K_LEGACY_ICON_SPACING=true makes spaces around icons
    appear just like in powerlevel9k.
  - When in a vcs repo, POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=true
    removes directory prefix that precedes repo root.
  - P9K_KUBECONTEXT_USER can now be used in kubecontext format.
  - POWERLEVEL9K_GOENV_SOURCES -- the same as
    POWERLEVEL9K_RBENV_SOURCES but or go.
  - POWERLEVEL9K_TERRAFORM_CLASSES -- the same as
    POWERLEVEL9K_AWS_CLASSES but for terraform.
- Bug fixes:
  - Configuration wizard now correctly follows symlinks when modifying
    ~/.zshrc and ~/.p10k.zsh.
  - ram prompt segment now works on WSL.
  - Powerlevel10k now correctly works with zsh-you-should-use in
    hardcore mode.
  - POWERLEVEL9K_PUBLIC_IP_HOST now points to a host that actually
    works.
  - Instant prompt no longer prints nonsensical "entry=" in rare
    circumstances.
- Misc:
  - Config templates no longer work with
    POWERLEVEL9K_VISUAL_IDENTIFIER='' defined after them.
  - Powerlevel10k now detects when Antigen corrupts its source and
    emits an appropriate error message.
  - Command line parser now understands 'tabbed'.
  - Remove all references to romkatv/dotfiles-public. Fonts are now
    hosted in romkatv/powerlevel10k-media together with all images
    and animations.

==[ Build time dependencies ]==

- edb99aa7b8
- 75be63625a
- https://opensource.apple.com/tarballs/libiconv/libiconv-51.200.6.tar.gz
2020-02-02 11:09:29 -08:00
7ec4aad48c Merge upstream/master 2020-01-19 18:54:16 +01:00
romkatv
1f52b03a45 prompt: update powerlevel10k submodule to the latest commit (#1784)
- New features:
  - Show On Command -- Display prompt segments conditional on the
    command being typed. Demo:
    https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/show-on-command.gif
  - `p10k display` -- Quickly hide or show different parts of prompt.
  - `p10k-on-*` hooks -- Get notified about prompt-related events.
- New prompt segments:
  - google_app_cred -- Google Application Credentials.
  - luaenv -- Lua version from https://github.com/cehoffman/luaen.
  - jenv -- Java version from https://github.com/jenv/jenv.
  - plenv -- Perl version from https://github.com/tokuhirom/plenv.
  - nnn -- Shell indicator for https://github.com/jarun/nnn.
- Important fixes:
  - Ctrl-C no longer shortens prompt when used to terminate a zle widget
    with transient prompt enabled.
  - Don't print warnings in instant prompt when OMZ is updating.
  - rust_version now properly recognized rustup overrides.
- Smoother rendering when using transient prompt.
- New style in `p10k configure`: Lean restricted to 8 colors.
2020-01-16 08:52:09 -08:00
721b1535ea Merge upstream/master 2019-12-18 16:03:08 +01:00
romkatv
a5ebde1b17 prompt: update powerlevel10k submodule to the latest commit (#1768)
- New prompt segments:
  - gcloud
  - fvm
  - vim_shell
  - midnight_commander
  - goenv
- Many bug fixes and new minor features.
2019-12-09 16:04:22 -08:00
ef3e9eda18 Merge upstream/master 2019-12-01 17:38:39 +01:00
romkatv
2d6205e714 prompt: update powerlevel10k submodule to the latest commit (#1761)
New feature: Transient Prompt.

Demo:
https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/transient-prompt.gif

Announcement post:
https://www.reddit.com/r/zsh/comments/dsh1g3/new_powerlevel10k_feature_transient_prompt
2019-11-11 09:25:39 -08:00
romkatv
0af28e758b prompt: update powerlevel10k submodule to the latest commit (#1757)
- New feature: Instant Prompt.
  - Zsh starts instantly even if zshrc loads dozens of plugins.
  - Must be explicitly enabled via `p10k configure`.
- New prompt segment: azure.
- New styles: Pure and Rainbow.
- 6 times faster loading (independent of instant prompt).
2019-11-07 00:33:37 -08:00
048d5302d6 [modsorin] Change AWS prompt 2019-11-06 19:19:16 +01:00
f549bd7a0b [aws/sorinmod] Fix AWS profile prompt 2019-11-06 18:31:43 +01:00
daniel.carrillo
ed511e6747 [aws/sorinmod] Show aws profile in prompt 2019-11-06 17:28:19 +01:00
91292526a0 Add sorin prompt changes to sorinmod 2019-09-20 21:22:12 +02:00
a1df63bade Merge upstream/master 2019-09-20 21:16:11 +02:00
Roman Perepelitsa
8b1a7afd81 prompt: update powerlevel10k submodule to the latest commit (#1738)
- New prompt segment: terraform.
- Configuration wizard:
  - Offer to install Meslo Nerd Font (only on iTerm2 and Termux).
  - Offer to enable `time` prompt segment.
  - New style options: round separators, heads and tails.
  - Reduce the minimum required terminal width to 55 columns.
- Several bug fixes. Most notable:
  - Fix network interface and ip parsing on Linux and WSL.
  - Disregard auto_name_dirs if it's set.
2019-09-06 10:08:26 -07:00
pedrosland
8914274ca9 prompt: update zsh-async to fix an infinite loop (#1734) 2019-08-19 10:30:33 -07:00
romkatv
a8087e01fb prompt: update powerlevel10k submodule to the latest commit
- Several bug fixes. Most notable:
  - Don't hide command execution time on reset-prompt.
  - Support prezto with zsh 5.1.
  - Don't hide nvm prompt when there is no nvm command.
- New prompt: ranger.
- Add an option to hide rust version when outside of rust project tree.
- Add an option to show rvm gemset.
2019-08-19 10:24:45 -07:00
romkatv
abb0c7ecb4 prompt: update powerlevel10k submodule to the latest commit
A dozen bug fixes. Most important:

- rbenv and a few other segments didn't work if IFS was set
  to something unusual.
- vcs segment couldn't properly apply subsegment style if
  color overrides used mnemonic names.
- the check for .p10k.zsh already being sourced was too strict.
2019-08-02 01:54:56 -07:00
romkatv
b01f02aa5c prompt: update powerlevel10k submodule to the latest commit
New feature: Configuration Wizard. Type `p10k configure` to
explore the unique styles and features Powerlevel10k has
to offer.
2019-07-31 14:49:31 -07:00
John P. Neumann
5566a9c792
Resolves 1641 - Checks whether the prompt is set to be managed or not. (#1723)
This is a new variable that will need to be set on all new prompts and
is not backwards compatible with custom prompts that are not prezto
managed, but use prezto's editor-info functionality. Updated the
README.md with additional information for themes.
2019-07-25 17:14:43 -05:00
Roman Perepelitsa
3ae422a0da prompt: update powerlevel10k submodule to the latest commit (#1727)
The last update has picked up a nasty bug in gitstatus that disables all user aliases. This commit fixes it.
2019-07-24 11:13:32 -07:00
Roman Perepelitsa
6dd97d15e0 prompt: update powerlevel10k submodule to the latest commit (#1726)
Changes include a few bug fixes and a score of new features.
2019-07-23 10:04:45 -07:00
21b83b65ef Merge upstream/master 2019-07-18 18:22:31 +02:00
Roman Perepelitsa
e94b6b2078 prompt: update powerlevel10k submodule to the latest commit (#1717)
A bunch of bug fixes. Most notably romkatv/powerlevel10k#89.
2019-07-02 10:23:12 -06:00
de23724dc3 Merge upstream/master 2019-06-21 18:42:55 +02:00
e6e5e4d68f Fix os-info and update prompt 2019-06-21 18:42:37 +02:00
Roman Perepelitsa
09e83ed282 prompt: update powerlevel10k submodule (#1715) 2019-06-17 10:49:02 -07:00
15bfe616bc Merge upstream/master 2019-06-07 17:35:30 +02:00
Kaleb Elwert
1d58546406 prompt: update powerlevel10k to latest commit 2019-05-29 13:42:17 -07:00
Roman Perepelitsa
ac65e8eb18 Add powerlevel10k theme (#1695) 2019-05-29 13:40:47 -07:00
f235db7aaa Fork prompt_sorin as prompt_sorinmod 2019-05-17 20:53:44 +02:00
c2c53592a1 Merge upstream/master 2019-01-11 18:24:30 +01:00
Alexander Neumann
ba4063f99e Remove old prompt tempfile and pid variable
This is a leftover of #1385, the temp file and the PID variable is not
needed any more.
2019-01-07 21:11:37 -06:00
Diego Rabatone Oliveira
88456ec9b6 Updating submodules to lastest tags/master commits 2019-01-07 20:56:52 -06:00
1a48ae2e54 Merge upstream/master 2018-12-13 19:52:04 +01:00
Diego Rabatone Oliveira
3de1e24965 Update submodules versions 2018-12-06 12:05:43 -06:00
32084778d0 Merge upstream/master 2018-12-06 16:46:22 +01:00
John P. Neumann
8bfed01773 Resolves #1641 - Roll the pure prompt back from 1.8.0 to 1.7.0 2018-11-30 16:55:25 -06:00
35a83744e7 Merged 2018-11-09 17:46:04 +01:00
Diego Rabatone Oliveira
e6eea17b12 Update submodules
Updating to the latest released tags for modules:
completetion
syntax-highlighting

And for agnoster prompt
2018-11-08 17:42:44 -06:00
f37cf0ffc9 Merge remote-tracking branch 'upstream/master' 2018-10-21 18:32:07 +02:00
Indrajit Raychaudhuri
bfe1815cbf prompt/sorin: Minor cleanup and reordering 2018-10-18 08:14:47 -05:00
Indrajit Raychaudhuri
a43093119e prompt/minimal: Add support for preview 2018-10-18 08:14:47 -05:00
Indrajit Raychaudhuri
a3753d8f3b prompt/steeef: Add basic support for editor_info and preview 2018-10-18 08:14:47 -05:00
Indrajit Raychaudhuri
ff5bd9306e submodule: Updating submodules
'modules/prompt/external/async' updated to 'v1.7.1'
'modules/syntax-highlighting/external' updated to latest 'master'
2018-10-11 17:26:42 -05:00
53facbe9de Add os-info function and use it in damoekri theme 2018-10-06 21:12:31 +02:00
Diego Rabatone Oliveira
fbcae356d3 Updating submodules
For the submodules that have some kind of release (tags), they were
updated up to the most recent release. Otherwise, the submodule was
updated to the latest commit.
2018-09-17 16:34:01 -05:00
Diego Rabatone Oliveira
f2042a29cc Update submodules (#1615)
This updates the submodules for autosuggestions, completion,
syntax-highlighting and the prompts async, powerlevel9k and pure.

All submodules that have TAGs/Releases were updated to their latest
TAG/release, except for syntax-highlighting because it's latest
release/TAG is from more than one year ago, and the project seems to be
well maintained but without releases.
2018-08-09 14:25:30 -04:00
Kaleb Elwert
300102897a Add proper prompt_opts to smiley prompt 2018-04-06 11:35:39 -07:00
Kaleb Elwert
054eb351f1 Revert "Only call reset-prompt when the appropriate zstyle is set"
This reverts commit 6d00fdf8c8.

As unfortunate as it is, this workaround was a hack and doesn't take
into account prompts like spaceship which don't use $editor_info but
rely on $KEYMAP directly. We'll need to find a more consistent solution
to fix this.
2018-04-06 11:33:02 -07:00
John P. Neumann
6d00fdf8c8 Only call reset-prompt when the appropriate zstyle is set
Resolves issue #1524 (#1548)
2018-02-20 20:36:29 -08:00
Kaleb Elwert
df3468e957 Update zsh-async to v1.6.0 2017-11-28 15:10:13 -08:00
Kaleb Elwert
ad79f78fbe prompt: fix async usage in sorin prompt
Fixes #1509
2017-11-11 20:57:03 -08:00
Kaleb Elwert
e159c1a439 prompt: update sorin prompt async usage to be closer to pure 2017-11-11 15:18:31 -08:00
Kaleb Elwert
4b0ecffaca prompt: update pure to 1.6.0
Refs #1487
2017-10-29 23:32:14 -07:00
Kaleb Elwert
cbcbedd694 prompt: Add basic troubleshooting information for fonts
This is related to #1495 and a number of other issues which have been
filed about font issues.
2017-10-24 12:52:42 -07:00
Diego Rabatone Oliveira
3faaffe7e9 Updating submodules
Updating `completition`, prompt `async` and `syntax-highlighting`. All
modules where checkout to their latest tag.
2017-09-06 11:39:43 -07:00
Kaleb Elwert
34482cb325 prompt: add documentation for return value display 2017-09-06 11:19:17 -07:00
Samantha McVey
2cfd366ba6 [prompt_sorin] Use ✘ and show return value for non-0 rtrns (#1460)
If you do not want it to show the return code, you can set:
`zstyle ':prezto:module:prompt' show-return-val false`
2017-09-06 11:14:35 -07:00
Antoine Rahier
76388a8cd1 Pin powerlevel9k submodule to latest release (v0.6.4) 2017-08-31 18:31:09 -05:00
Antoine Rahier
6a8f1c6b16 Add powerlevel9k theme 2017-08-31 18:31:09 -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
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
a60499f933 [general] Miscellaneous cleanup and formatting 2017-08-04 13:45:56 -05:00
Kaleb Elwert
7e7124e84a Update agnoster prompt to include security fix
Fixes #1267
2017-07-25 14:15:07 -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
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
Kaleb Elwert
7d5beeab51 Add comments into each of the function files to make them easier to find 2017-07-06 16:13:36 -07:00
Samantha McVey
5cd3380d9d [prompt/sorin] Fix branch code exploit vulnerability
Escape all $ except the first $. Escape all backtick `'s. This prevents
variable names or shell expansions placed as branch names from
remotely exploiting code.

Fixes issue #1267 for sorin prompt.
2017-07-05 13:06:36 -07:00
Kaleb Elwert
a0541ce7a5 Default sorin theme to /tmp when TMPDIR is not set
Fixes #1331
2017-06-16 10:37:54 -07:00
Alexander Neumann
2f20a80f72 sorin theme: Use a proper temp file for async data 2017-06-13 10:36:35 -07:00
Kyle Rich
723b3812e1 Convert long-pwd to pwd-length 2017-04-27 13:33:40 -07:00
Kyle Rich
7c509a264f Add zstyle option to show pwd in long format 2017-04-26 11:30:10 -07:00
Patrick Bos
c38c2dd909 Move python-info call in paradox from preexec to precmd 2017-04-15 16:44:05 -07:00
Kaleb Elwert
8655cd543b Ensure extendedglob is set in promptpwd 2017-04-13 01:16:44 -07:00
Matt Hamilton
60c433d4ce Move common promptpwd code to external function 2017-04-13 01:15:01 -07:00
Kaleb Elwert
b963484fe7 Only try to run python-info if it exists for the paradox prompt 2017-04-11 15:12:09 -07:00
Kire Ledan
95d19b37c1 Added support for python venv display in paradox prompt 2017-04-04 23:52:12 -07:00
Kaleb Elwert
27c2ccd8b9 Update external prompt modules 2017-04-04 23:00:28 -07:00
Plastix
8820b71f37 Update pure prompt to v1.5.2
This fixes a security issue with malicious branch names
2017-04-03 11:42:05 -07:00
Sorin Ionescu
8bd720b0c7 Update pure theme 2016-02-28 22:32:40 -05:00
Sorin Ionescu
165879d4b3 Update pure theme 2015-11-09 02:09:48 -05:00
Sorin Ionescu
f2a826e963 Add preview function to sorin theme 2015-05-31 16:51:29 -04:00
Sorin Ionescu
bdec6c4e20 Redraw only when called from subprocess 2015-05-31 16:50:03 -04:00
Sorin Ionescu
ef634f38a4 Replace signal TERM with KILL 2015-05-31 16:47:16 -04:00