Commit graph

960 commits

Author SHA1 Message Date
Olaf Conradi e9197234cf
Add check for empty WORKON_HOME (#1861)
When $WORKON_HOME is not set and $ENV_NAME is equal to
$PROJECT_ROOT/.venv which contains bin/activate then
the code wrongly assumes workon is available.

It should execute the second branch to source bin/activate.
2020-07-27 12:49:40 -07:00
Yasuharu Iida 685da200d7
completion: bump version to tags/0.32.0 (#1856) 2020-07-22 10:28:53 -07:00
Austin Sloane 4e7ab4b8b7
utility, helper: add aliases to use with termux terminal emulator (android) (#1859) 2020-07-20 16:07:53 -07:00
Roman Perepelitsa c21295b27f prompt: update powerlevel10k submodule to v1.12.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.12.0
2020-07-06 09:15:34 -07:00
Zhiming Wang a132c1007a
git-info: use tab as separator for splitting ahead_and_behind (#902)
The current implementation is not tamper-proof against a modified IFS. See discussion in https://github.com/sorin-ionescu/prezto/pull/902 for details.
2020-06-29 10:26:36 -07:00
Joost Cassee 2d3763380c
Ask pyenv whether pip exists if installed (#1848)
Pyenv will install shims for commands that exist in any interpreter, even if it is not the current one. This means that a command may technically exist, but when executed will tell the user to try a different interpreter. The original check for pip in the Python module can fail for this reason, in particular on Ubuntu 20.04.

This change checks with pyenv whether pip really exists in the current interpreter to work around this problem and fixes a bug in pip command detection.
2020-06-29 10:25:15 -07:00
hidekuro 20a78c04e5
Remove --all from git alias glg (#1853) 2020-06-29 10:23:08 -07:00
Texas Toland ff91c8d410
Make .zcomp* location configurable (#1842) 2020-06-04 13:53:44 -07:00
Roman Perepelitsa b8f5b31573 prompt: update powerlevel10k submodule to v1.11.0
Release notes: https://github.com/romkatv/powerlevel10k/releases/tag/v1.11.0
2020-05-31 20:19:44 -07:00
Srijan R Shetty cb69d2d3e4
Merge pull request #1836 from diraol/dro/git_pull_autostash
[git] Add git pull autostash alias
2020-05-29 11:56:04 +05:30
romkatv 793f239a5e prompt: update powerlevel10k submodule to v1.10.0
Release notes:

- https://github.com/romkatv/powerlevel10k/releases/tag/v1.8.0
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.8.1
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.8.2
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.9.0
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.9.1
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.10.0
2020-05-20 03:22:52 -07:00
Diego Rabatone Oliveira 649c0e4561 [git] Add git pull autostash alias
Adds the gfma and gfra aliases with the `--autostash` flag.
2020-05-14 15:19:03 -03:00
Amyn 13c61bae30
Do not source history-substring-search if already loaded (#1830) 2020-05-02 11:21:27 -07:00
romkatv 530ea10126 prompt: update powerlevel10k submodule to v1.7.0
Release notes:

  - https://github.com/romkatv/powerlevel10k/releases/tag/v1.6.0
  - https://github.com/romkatv/powerlevel10k/releases/tag/v1.6.1
  - https://github.com/romkatv/powerlevel10k/releases/tag/v1.7.0
2020-04-30 14:34:22 -05:00
Zac Bergquist 342385618c homebrew: load helper dependency
Updates #1815
2020-04-23 21:21:17 -05:00
Srijan R Shetty 95ff0360ae
fix: regression in homebrew module (#1816) 2020-04-06 02:55:01 -07:00
Ackerley Tng 5b03d7fa32
prompt: fix usage of zsh-async in sorin prompt (#1810) 2020-03-29 12:51:11 -07:00
Charith Amarasinghe d5bef142d4
Fix missing dependency on helper module for helpers added in #1793 (#1811)
PR #1793 introduced helper functions for OS detection in some modules.
These helpers require a module dependency on the 'helper' module.
2020-03-29 12:49:35 -07: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
Kaspar Vollenweider f4ca9ebfc9 feat(helper): add os-type helper functions
Add the following functions:

- is-darwin
- is-linux
- is-bsd
- is-cygwin

And apply them everywhere I found code doing that what these functions do.
2020-03-19 11:49:11 -07:00
Kaleb Elwert 1b99be879c Update syntax-highlighting module 2020-03-19 11:19:25 -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
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 94f9e44f3f use $TTY instead of $(tty); it's faster and more reliable
`tty` command infers the current TTY from file descriptor 0.
`$TTY` gives current TTY directly. The latter works even when
file descriptor 0 is redirected. It's also over 1000 times faster.
2020-03-02 10:50:11 -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
Federico Frenguelli e9f281cd6f Updated prompt pure to version 1.11.0 2020-02-11 10:09:48 -08: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
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
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
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
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
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
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
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
Roman Perepelitsa 09e83ed282 prompt: update powerlevel10k submodule (#1715) 2019-06-17 10:49:02 -07: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
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
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
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
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
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
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
Tercio Gaudencio Filho 1ed5331e84 Fix issue #1635. Option to disable GNU ls to group directories first. 2018-10-18 16:22:04 -05: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 58809b2d21 Update submodule 'history-substring-search'
history-substring-search doesn't tag releases anymore and just maintains
the master branch -- switching to tracking master instead.
2018-10-12 16:55:57 -05:00
Indrajit Raychaudhuri 992b9de505 doc: More copyediting and formatting for consistency 2018-10-12 12:04:49 -05:00
Indrajit Raychaudhuri 6f603df7a6 general: Miscellaneous documentation updates
- Add missing documentation for options and environment variables
- Rearrange definition and documentation of 'Options', 'Variables'
  and 'Aliases' in a consistent order
2018-10-12 12:04:49 -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
Kaleb Elwert 6c46804f41 environment: only enable bracketed paste on non-dumb terminals
Fixes #1552
2018-09-28 14:51:59 -07:00
Kaleb Elwert e9387a177e python: respect PYENV_ROOT if already set
Fixes #1578
2018-09-28 14:24:30 -07:00
Kaleb Elwert ee885d42de python: use pure's magic value for VIRTUAL_ENV_DISABLE_PROMPT
Fixes #1627
2018-09-28 14:04:24 -07: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
Indrajit Raychaudhuri f366e49c32 homebrew: Cleanup homebrew aliases
- 'brew upgrade' does 'brew update' by default, no need for explicit call
- replace 'brew remove' with 'brew uninstall' for consistency
2018-09-15 13:04:07 -05:00
Indrajit Raychaudhuri ad861d3b45 homebrew: Replace deprecated casks with their brew counterpart
Homebrew has deprecated `brew cask cleanup` and `brew cask search` in favor
of `brew cleanup` and `brew search` respectively. They will stop working on
2018-09-30. Further, `--outdated` has been removed.

We should eventually remove the related aliases, but for a while we keep
supporting them gracefully with deprecation warning.

The documentation has been removed from README.md, however.
2018-09-15 13:04:07 -05:00
Indrajit Raychaudhuri 2bbf5d0687 homebrew: Load standard Homebrew environment variables into shell session.
However, guard for legacy Homebrew as `brew shellenv` is relatively new.
2018-09-15 09:37:24 -07:00
Yutian Li dd7a26e219 [git] Also check "commondir" when looking for a stash (#1620) 2018-09-15 09:35:48 -07: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
Steven Loria dacef14214 Improve startup time by skipping pyenv rehash
After profiling startup time, I found that "pyenv rehash" is
by far the slowest piece. This change skips rehashing on init.

See https://github.com/pyenv/pyenv/issues/784#issuecomment-404850327

Also pass the shell explicitly, as suggested in
https://github.com/pyenv/pyenv/issues/784#issuecomment-404944318,
which provides a modest improvement.

In total, this improves startup time from 1s to 0.3s on my machine.
Using the following command:
python -m timeit "__import__('subprocess').Popen(['zsh', '-i', '-c', 'echo']).communicate()"

Result before this change:
10 loops, best of 3: 1 sec per loop

Result after this change:
10 loops, best of 3: 334 msec per loop
2018-08-01 13:52:52 -04:00
Michael Kohl e064d5c65f Make node-info work without nvm/nodenv 2018-08-01 13:50:20 -04:00
Colin Hebert e149367445 coreutils: update list of included coreutils (#1592) 2018-06-26 16:28:04 -07:00
Indrajit Raychaudhuri cd70822994 completion: Compact path to global ssh known hosts file 2018-06-26 13:43:27 -05:00
Kaleb Elwert 0d6e7de031 syntax-highlighting: Update README to clarify module load order
Fixes #1584
2018-06-18 14:16:39 -07:00
Alexander Neumann b11b9ce788 Fix path to global ssh known hosts file
The path to the global known hosts file is /etc/ssh/ssh_known_hosts, not
/etc/ssh_hosts.
2018-06-14 11:31:29 -07:00
Jeff Widman 3d911cd511 Document gpf vs gpF
Document the difference between `gpf` and `gpF`. These were changed in https://github.com/sorin-ionescu/prezto/pull/1040 / ddfc870f9a, but never documented.
2018-05-20 14:10:13 -07:00
Jeff Widman ae23bedd24
Document macOS support for command-not-found
Document macOS support for `command-not-found`
2018-05-20 14:06:54 -07:00
Casey McGinty 2995b7d0c8 Update cache files when .zpreztorc file is modified
Fixes #1581
2018-05-06 13:22:22 -07:00
Casey McGinty 6e179f24ab Export VIRTUAL_ENV_DISABLE_PROMPT when enabling virutalenv
Adding `export` ensures the define is available in the shell so pyenv
or virtualenvwrapper do not duplicate the virtualenv name on the
prompt.
2018-05-01 08:53:16 -07:00
Kaleb Elwert f8f93d4b91 command-not-found: Directly source homebrew command-not-found handler
Fixes #1577, Fixes #1451
2018-04-29 17:39:39 -07:00
Ashish Gandhi b6b43eb331 Rename "Mac OS X" to "macOS" in comments
This only changes references in text for human consumption. It leaves
out renaming paths because that can cause breaking changes.

Related issue https://github.com/sorin-ionescu/prezto/issues/1449.
2018-04-16 15:53:48 -07: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
François VANTOMME 1b441e7654 Feat (git): add an alias displaying the commits yet to be applied to upstream (#1565) 2018-04-04 15:20:21 -07:00
Kaleb Elwert 443021237a
Allow users to easily define LS_COLORS and LSCOLORS (#1546) 2018-03-30 17:47:05 -07:00
Roman Peshkov a0977cb92e Ignore tmux autostart in vscode terminal 2018-03-30 17:45:35 -07:00
Diego Rabatone Oliveira b3c27bb164 Replace git with 'command git' (#1551)
to improve performance if git is aliased to hub or other wrappers.
2018-03-05 00:56:25 -08:00
bryndin e00562e7cf python: autoload add-zsh-hook when needed (#1549)
Fixes #1550
2018-02-23 13:39:45 -08:00
Kaleb Elwert 742260b55f Remove support for pydf to make options more consistent
Closes #1388
2018-02-21 14:10:11 -08:00
Philipp A 580ddc44f3 Add another shadow to the git aliases
Originally submitted in https://github.com/sorin-ionescu/prezto/pull/979
2018-02-21 14:02:56 -08:00
Rick Jones 4325f74f9d git: add tag aliases
Originally submitted in https://github.com/sorin-ionescu/prezto/pull/1094
2018-02-21 13:48:51 -08: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
Alexey Zapparov e26387656d Don't double-source chruby
If chruby was installed using default way, most likely chruby and
auto-switching will be already sourced (at least on most Linuxes).
2018-02-17 19:38:12 -08:00
Kaleb Elwert d7622624aa autosuggestions: add basic history troubleshooting information 2018-02-17 08:06:34 -08:00
Kaleb Elwert 282b478fd2 Add vi-pound-insert as # in vicmd mode
Fixes #1534
2018-01-26 18:14:14 -08:00
Kaleb Elwert 904eef5fa5 Add pound-toggle zle widget to work around the buggy built-in pound-insert
Refs #1533, #1534
2018-01-26 14:52:11 -08:00
Kaleb Elwert 906ac99e20 Move INTERACTIVE_COMMENTS from editor to environment 2018-01-25 12:41:58 -08:00
Maxim Baz 0b62639ad5 Set INTERACTIVE_COMMENTS by default
This allows using # to comment lines in the interactive shell
2018-01-25 12:32:29 -08:00
Kaleb Elwert 54d2a76731 pacman: fix mistake where aurutils should be used, not aurtools 2018-01-24 14:01:14 -08:00
Kaleb Elwert e32a96be72 pacman: Simplify support for AUR helpers
There are a number of things happening here.

- Extra support for yaourt has been removed
- Docs have been updated to explicitly call out that AUR helpers are not
  officially supported
- aurutils has been suggested to make common operations easier
- A utility function called aurget (similar to aurfetch from aurutils)
  has been added to make cloning AUR repos easier.

Fixes #1531
2018-01-24 13:47:22 -08:00
Salmanul Farzy 73e94b84bb Don't set auto_name_dirs because it messes up prompts
This was ported from Oh-My-Zsh and since have been disabled in it.

Explained in more detail
rvm/rvm/issues/3091#issuecomment-60083194

Related: #998, #1081
2018-01-16 02:47:03 -08:00
Kaleb Elwert 82d3265ad5 utility: remove usage of noremoteglob until bugs can be fixed
Fixes #1443, #1521
2017-12-18 13:35:23 -08:00
Kaleb Elwert 66bfe9be27 autosuggestions: ensure external submodule is the latest version 2017-12-14 22:26:13 -08:00
Kaleb Elwert 83085e5231 python: remove zstyle setting in favor of third party environment variable
Refs #1519, #1520
2017-12-14 17:23:44 -08:00
Kaleb Elwert 4c31107e3b python: only override virtualenv python if not set
Fixes #1520
2017-12-14 17:11:06 -08:00
Kaleb Elwert d8d6b4d70a python: only override virtualenvwrapper python when needed
Fixes #1519
2017-12-12 23:11:55 -08:00
Kaleb Elwert e021adeb4a python: make a reasonable guess about virtualenvwrapper python location
Fixes #1416
2017-12-11 11:01:42 -08:00
Brian K. Christensen aa0395244d Update zsh-autosuggestions to v0.4.2 2017-12-07 10:13:04 -08:00
Kaleb Elwert 3ab569ff78 python-info: add support for pyenv and only do extra work if the prompt needs it 2017-12-04 15:08:58 -08:00
Kaleb Elwert 3a0bd28e0c ruby-info: only run commands if the prompt needs the info 2017-12-04 15:08:23 -08:00
Kaleb Elwert 64d57ec71f python-info: avoid setting python_info[version] if python is not on the PATH 2017-12-04 12:08:45 -08:00