1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-10-03 08:22:39 +00:00
Commit Graph

925 Commits

Author SHA1 Message Date
bca85497f8 [aws] Add a (dirty) function for showing cloudfront distributions 2020-02-06 19:48:22 +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
ac9843e2d4 Merge upstream/master 2020-01-30 08:54:36 +01:00
Kaleb Elwert
66b9ea7d44 Update documentation
- Fix an old link to the wrong issue tracker
- Add documentation to the history module about migration from oh-my-zsh

Closes #1766
2020-01-20 07:50:42 -08:00
Roman Perepelitsa
7cad349a5a environment: improve the TTY check (#1785)
Bug report from @qosmio:
https://github.com/sorin-ionescu/prezto/pull/1771#issuecomment-575596417

I'm unable to reproduce it and @qosmio hasn't yet confirmed or
disconfirmed whether this fix works. It's a good idea to change
the code this way in either case.

(As I mentioned in #1771, this `stty -ixon` call may have been added
by mistake. It doesn't do what the comment suggest and is at least as
likely to be harming users as helping them.)
2020-01-20 07:29:34 -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
Ivan Smirnov
2acaec814f autosuggestions: update to v0.6.4 2020-01-14 09:08:47 -08:00
Roman Perepelitsa
7c94154dda environment: apply stty -ixon only to tty (#1771) 2019-12-27 15:22:15 -08:00
Maxim Baz
e86200e7aa Allow mapping Ctrl+S and Ctrl+Q shortcuts (#1750) 2019-12-18 15:37:51 -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
a251bd2fb9 [aws] Add date to aws_ami function output 2019-12-01 18:31:29 +01: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
b9c34d9445 [aws] Improve filtering at aws_ssm_session_any() 2019-11-08 19:44:43 +01: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
e9e8c31217 [aws] Merge aws_elb and aws_elb2 aliases and improve information shown 2019-11-06 19:02:45 +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
daniel.carrillo
13f3cabd81 [aws] Add alias for ssh through ssm proxy 2019-11-05 12:05:16 +01:00
daniel.carrillo
b2aead431c [aws] Fix typo at aws_kms_decrypt 2019-11-05 11:40:15 +01:00
daniel.carrillo
21ce6a6f97 Merge branch 'master' of https://github.com/dcarrillo/prezto 2019-11-04 11:06:52 +01:00
daniel.carrillo
585b3646f9 aws: Fix profile issues 2019-11-04 11:05:59 +01:00
aeb58b972d Merge upstream/master 2019-10-24 19:43:06 +02:00
daniel.carrillo
b44893d9eb [aws] Add aws_kms_decrypt and aws_ssm_session functions 2019-10-24 14:57:58 +02:00
lambdanerd
ed6303c340 homebrew: add alias brewL 2019-10-17 13:59:40 -07:00
lambdanerd
6d65cb4176 Remove documentation for obsolete brewC alias 2019-10-17 13:59:40 -07:00
lambdanerd
55eb406515 Remove alias for invalid brew cleanup --force
`brew cleanup --force` produces the following error message: `Error: invalid option: --force`. I can't seem to find any record of this being a valid option for the cleanup command, so either it was deprecated in the stone age or it was a simple mistake. However, there is a `--force` option available for `brew uninstall`, but that's a dicey thing to alias.
2019-10-16 09:13:29 -07:00
Kaleb Elwert
2873885d37 utility: fix safe-ops commands
Fixes #1699
2019-09-21 17:29:21 -07: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
Robson Roberto Souza Peixoto
9507a0e881 tmux: ignore tmux autostart in vscode terminal (#1718)
In certain situations VSCODE_PID isn't set any more, so we just need to check TERM_PROGRAM which has existed for a few years already.
2019-09-10 09:18:09 -07:00
Kaleb Elwert
75b112bcd0 node, python, ruby: update docs about new envars 2019-09-10 09:10:31 -07:00
laggardkernel
f596d5d1d6 python: improve PYENV_ROOT detection 2019-09-10 09:00:11 -07:00
laggardkernel
61de4d199d node: support environment variables NVM_DIR and NODENV_ROOT 2019-09-10 09:00:11 -07:00
laggardkernel
6ae2f39cc1 ruby: support environment variable RBENV_ROOT 2019-09-10 09:00:11 -07:00
Roman Perepelitsa
75940e8ee9 directory: update docs to clarify it doesn't really set AUTO_NAME_DIRS (#1740)
Module `directory` used to set AUTO_NAME_DIRS. This was changed in
73e94b84 but README.md hasn't been updated. This looks like an
accidental omission that this commit fixes.
2019-09-10 08:57:42 -07:00
Shane O'Grady
43214f1aed history: Permit use of previously set HISTFILE
Honor the use of the HISTFILE environment variable, if it's already set.
2019-09-10 08:56:51 -07: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
Julien Brochet
34948690d5 syntax-highlighting: update external dependency 2019-08-19 10:28:23 -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
Toshiki Murayama
bb901dfb7e Update zsh-autosuggestions submodule 2019-05-23 09:20:38 -07:00
f235db7aaa Fork prompt_sorin as prompt_sorinmod 2019-05-17 20:53:44 +02:00
82222831a7 Merge upstream/master 2019-03-30 15:20:55 +01:00
Chris Ewald
1f4601e44c Disable node-info output when value is system.
This makes the behavior consistent with rbenv and pyenv.
2019-03-18 00:10:32 -05:00
monai
b8d7e2cad8 Add zstyle option to disable zsh option CORRECT 2019-03-05 14:04:21 -08:00
Maxim Baz
5d7c990eec archive: enhance parallel operations 2019-02-18 21:40:25 -08:00
Yutian Li
d22effbf85 editor: allow alt+arrow keys for word movement (#1688) 2019-02-11 16:21:38 -08:00
4ff726e600 Merge with upstream 2019-01-11 18:26:13 +01:00
c2c53592a1 Merge upstream/master 2019-01-11 18:24:30 +01:00
Yutian Li
4abbc55721 remove mutually exclusive option 2019-01-07 21:03:12 -08:00
Diego Rabatone Oliveira
777674e07e Update syntax-highlighting submodule 2019-01-07 21:12:32 -06: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
Jeff Widman
4a16d3fa50 Fix typo: gupl --> gulp (#1668) 2019-01-02 18:04:07 -08:00
a70d24ab10 Merge upstream/master 2018-12-22 14:43:23 +01:00
Indrajit Raychaudhuri
a338cba805 python: Use brace expansion for pip compctl match
Just use brace expansion only (and not a mix of brace expansion and
path expansion) to expand `sed` match for more variants of 'pip*' (pip,
pip2, pip3, pip2.7, pip3.7 etc.) in `compctl` assignment
2018-12-18 14:19:07 -06:00
Diego Rabatone Oliveira
0e6429da97 Remove duplicated information from git module README (#1657) 2018-12-17 10:22:33 -08:00
Indrajit Raychaudhuri
9d3e2f0204
python: Expand compctl matches for pip variants
Expand `sed` match for more variants of 'pip*' (pip, pip2, pip3, pip2.7, 
pip3.7 etc.) for `compctl` assignment
2018-12-14 21:32:10 -06:00
Indrajit Raychaudhuri
dc8e168d5f
command-not-found: Minor reformatting 2018-12-14 20:57:10 -06:00
Indrajit Raychaudhuri
3093f1b966
homebrew: Load 'HOMEBREW_' prefixed variables only
Load 'HOMEBREW_' prefixed variables only. Avoid loading 'PATH'
related variables as they are already handled in standard zsh 
configuration.
2018-12-14 15:40:59 -06:00
Indrajit Raychaudhuri
11184084bc
homebrew: Simplify array assignment
No need for nesting array assignment only to flatten it later.
2018-12-14 15:34:42 -06:00
Indrajit Raychaudhuri
54dff31b63 archive: Enhance 'archive' helper to support multi file archive
We now allow multiple paths (files/directories) to be archived in
one shot. Validation of the target path(s) is now delegated to the
actual archive helper.
2018-12-13 13:51:09 -06:00
23c56a5640 Improve aws_ebs output at aws module 2018-12-13 20:13:12 +01:00
1a48ae2e54 Merge upstream/master 2018-12-13 19:52:04 +01:00
Kaleb Elwert
eee3c9c166 git: add documentation for new aliases 2018-12-13 10:51:56 -08:00
Bruno Oliveira da Silva
39e1a63349 Aliases to digital sign/verify commits and tags (#651) 2018-12-13 10:43:23 -08:00
Indrajit Raychaudhuri
d275f316ff
syntax-highlighting: Further clarify relative module ordering 2018-12-12 23:02:59 -06:00
Indrajit Raychaudhuri
6a2cc2e146
rsync: Update link to Bombich rsync page again 2018-12-12 22:42:02 -06:00
Indrajit Raychaudhuri
d45d87b08f node: Make nvm lookup mechanism more efficient in homebrewed environment
In homebrewed environment, avoid using `brew --prefix nvm` which is
ruby based and is super slow. Instead, rely on homebrew standard
behavior wherein all installed packages are available in canonical
path $(brew --prefix)/opt/<package> (for nvm it would obviously be
`$(brew --prefix)/opt/nvm`).

NB: `$(brew --prefix)` (without additional argument) is a simple shell
shortcut and doesn't have the same performance impact.
2018-12-12 22:32:51 -06:00
Indrajit Raychaudhuri
a987c8bc8a
python: Fix pip compctl file match pattern
Make `sed` match more reliable while replacing the whole of 'pip*' with 
'pip pip2 pip3' for `compctl` assignment
2018-12-12 16:18:58 -06:00
Indrajit Raychaudhuri
f745645342 command-not-found: Support custom Homebrew tap on MacOS
Added support for homebrew-command-not-found from a non-default tap
2018-12-11 13:26:43 -06:00
Indrajit Raychaudhuri
a2398fc045 node: Cache completion for additional helpers
Add support for npm and additional well-known helper commands
2018-12-11 08:12:09 -06:00
Indrajit Raychaudhuri
e7fea3343f python: Use more apropriate filename for pip completion 2018-12-11 08:11:44 -06:00
Indrajit Raychaudhuri
53286ebbdb python: Make cached completion file mangling more reliable
While mangling cached completion file, we cannot just assume that
`$pip_command` would resolve to `pip` -- it might be `pip2` or `pip3`
depending on the relative position in zsh `$commands` array. Thus
replace the whole of 'pip*' with 'pip pip2 pip3' for compctl assignment.
2018-12-11 08:11:44 -06:00
Indrajit Raychaudhuri
2286662b80 command-not-found: Restore idiomatic homebrewed handler loading on MacOS
As is the convention in prezto, we cache the command-not-found handler to
avoid incurring the performance penalty of loading ruby interpreter on
every call. This restores the 'Homebrew way' of loading command-not-found
handler.

Further, the formally recommended command lookup mechanism in Homebrew
(viz., `brew command command-not-found-init`) is ruby based and is super
slow. To avoid performance penalty, we `find` it ourselves from
`TAP_DIRECTORY` defined internally in Homebrew.

This also reinstates support for custom taps or non-standard Homebrew location.
2018-12-11 08:10:37 -06:00
Diego Rabatone Oliveira
3de1e24965 Update submodules versions 2018-12-06 12:05:43 -06:00
be68a38ff5 Add AZ to aws_ebs funcion 2018-12-06 16:48:54 +01: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
dcarrillo
b2a9152820 Merge branch 'master' of https://github.com/dcarrillo/prezto 2018-11-21 08:52:04 +01:00
dcarrillo
680fba3112 Improve output of aws_elb2 function at AWS module 2018-11-21 08:51:36 +01:00
236907f8af Fix aws_ebs function at AWS module 2018-11-20 17:19:28 +01:00
dcarrillo
108392b503 Add describe_ebs function to AWS module 2018-11-20 15:58:58 +01:00