1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00
Commit graph

5686 commits

Author SHA1 Message Date
Marc Cornellà
742c984558 phing: fix copy-paste error in README 2020-03-09 14:46:22 +01:00
Marc Cornellà
2eb3e9d57c
lib: support konsole* $TERM in title function (#8035) 2020-03-05 17:26:16 +01:00
Marc Cornellà
1ef3d57739
aws: add support for AWS CLI v2 autocompletion (#8670)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-05 17:13:46 +01:00
Marc Cornellà
2f345a3d0c
shrink-path: added glob and quote options (#7694)
* Added -g option to shrink-path plugin.

The new optins adds an asterix to the uniquely shortened name, such
that, if copy'n'pasted, zsh globbing will expand to the full path name
of the shortened path:

shrink-path -g:
"/net/software/modules/modulefiles" -> "/n*/s*/modules/m*"

shrink-path -l -g:
"/net/software/modules/modulefiles" -> "/n*/s*/modules/modulefiles"

* Updated also the README file with the new -g option.

* shrink-path: improved handling of special cases

This commits improves the handling of special cases in path strings:

- handling of white space in path names
- handling of single-letter path names

* Update plugins/shrink-path/README.md

Co-Authored-By: Jacob Tomaw <jacob.tomaw@gmail.com>

* Fix typo "Asterix" and replace with "asterisk"

* Add optional quoting support to shrink_path

Co-authored-by: Jacob Tomaw <jacob.tomaw@gmail.com>
2020-03-05 13:08:05 +01:00
Alexey Györi
ecf2240b06
arcanist: add functions which allow copy-pasting of URLS (#8688)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-04 10:54:24 +01:00
chieping
76fb7a258b rbenv: fix rbenv_prompt_info prefix and suffix (#3764)
Closes #3764
2020-03-04 09:21:02 +01:00
Marc Cornellà
22fed4fbcb knife: fix refactor mistake 2020-03-04 09:12:58 +01:00
Masato Ikeda
314dd205ca knife: improve knife-solo support in completion (#3315)
Closes #1944
Closes #3315
2020-03-04 08:48:32 +01:00
Marc Cornellà
93a2ba6b5f kube-ps1: update to latest upstream version (c685ac8)
Closes #8009

Co-authored-by: Jon Mosco <jonny.mosco@gmail.com>
2020-03-03 23:03:39 +01:00
Marc Cornellà
b9d5ee7913
lib: automatic title: replace fg with description from jobs (#7982)
* Automatic title: Replace fg with description from jobs

* Avoid error messages when there is no job

* Use $jobstates and $jobtexts to look for jobs

`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.

* lib: clean up termsupport.zsh

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-03 20:21:29 +01:00
Marc Cornellà
02d1253809
lib: clean up termsupport.zsh 2020-03-03 20:17:01 +01:00
Marc Cornellà
d7825313cc
Use $jobstates and $jobtexts to look for jobs
`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.
2020-03-03 20:10:43 +01:00
Jean-Yves Rivallan
831089a375
git: make the gpristine alias remove untracked git repos (#8697) 2020-03-03 14:06:40 +01:00
Marek Dědič
bbe54e4e60
lib: use command to run rm in upgrade function (#8696) 2020-03-03 13:46:06 +01:00
Marc Cornellà
4009668500 random: remove random theme from possible themes to choose from
...preventing an infinite loop.
2020-03-02 23:53:43 +01:00
Marc Cornellà
480f1ecd96 Merge branch 'update/jira-plugin'
Closes #6506
Closes #6950
Closes #7962
2020-03-02 23:41:09 +01:00
Josh Christopherson
587000ec02 Some tweaks to the Jira plugin
[x] Updating `branch` command to be compatible with git-flow style branches by removing any prefix before attempting to go to the ticket number in Jira.
[x] Removing the switch between /browse/ and /issues/ based off of the `JIRA_RAPID_BOARD` setting - as all issues are under browse now it seems.
2020-03-02 23:37:40 +01:00
Marc Cornellà
1f6e1555f2 Clean up jira function 2020-03-02 23:26:52 +01:00
RoToRx88
952200044d Better support for branch name
Enable to get issue from branch prefixed with it and delimited by '_'
2020-03-02 23:16:44 +01:00
Matthew Manuel
2f6d79b75d Uppercase the issue in open issue command in the JIRA plugin 2020-03-02 23:14:08 +01:00
Andrea Nanni
10ab2911d3
sdk: add support for local versions and optimize sed calls (#7870)
* Added support for local sdk versions

Added support for local versions (prefixed by '+'), so they are filtered out in _listInstallableVersions() and they are displayed correctly by _listAllVersion()

* Optimize sed calls

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-02 16:19:48 +01:00
0b10
72707d92b1
python: add pyuserpaths function (#7758)
Summary
    Make it get a list of installed interpreters, and add the
    relevant local (HOME) site-packages directory to PYTHONPATH.

    Reason
    To easily add all relevant paths, initially, and between upgrades.

Add check for PYTHONUSERBASE

    Summary
    Check for a non-standard install directory, use it if one
    exists, otherwise use ~/.local.

    Reason
    Allow users to specify their own installation directory, without
    affecting functionality.
2020-03-02 13:38:44 +01:00
Hielke Walinga
ed94e06dda
command-not-found: speed up call to Homebrew command-not-found (#7740)
By sourcing brew files directly we can achieve a very high speed up.
This will not work if the user installed homebrew in a different
location than by default.
2020-03-02 13:34:26 +01:00
Pavel N. Krivitsky
e65bce8495
shrink-path: add minimum length and ellipsis symbol options (#7382)
* Added minimum length and ellipsis symbol options for the shrink-path plugin.

* Replaced tab indentation with space indentation for the shrink-path plugin.

* Added handling of multicharacter ellipsis, and updated documentation and README for the shrink-path plugin.
2020-03-02 13:30:52 +01:00
Pavel Fokin
74420341df
minikube: cache command completions (#7446) 2020-03-02 13:20:28 +01:00
Dan D'Avella
e42683b8c5
pip: add local Python package files to completion (#7442) 2020-03-02 13:17:16 +01:00
Marc Cornellà
d3dfc13716 lib: use grep-alias cache only if ZSH_CACHE_DIR is writable
Fixes #8693
2020-03-02 12:35:58 +01:00
Marc Cornellà
9ce7de9f16
Document ZSH_THEME_RANDOM_BLACKLIST setting 2020-03-01 22:53:33 +01:00
Marc Cornellà
461b2134de Merge branch 'grep.zsh-improvements'
Closes #5085
Closes #7451
Closes #7265
Fixes #8444
Closes #8445
2020-03-01 22:46:24 +01:00
Marc Cornellà
dc190d872a Refactor grep.zsh file
- Move grep-alias path to variable.
- Use <<< "" instead of piped echo to check grep flags.
- Remove check for --color only since it's the same release as --exclude.
2020-03-01 20:40:27 +01:00
Marc Cornellà
8d814fdff6 Fast algorithm to determine grep alias flags
This version tries whether grep supports all the flags together
and progressively checks older flags if the grep test fails.
This means only one grep call if all flags are supported, and
one additional call for every flag that's not supported, up to
a maximum of 3 calls.
2020-03-01 14:05:01 +01:00
mattmc3
57b178102c Performance enhancement for lib/grep
- Use $ZSH_CACHE_DIR to store the grep alias with all the right features
- Expire the cache after 24 hours
- See issue #8444
2020-03-01 14:04:36 +01:00
Shi Yan
a8ed1c4e7a Ignore .tox folder in grep 2020-03-01 13:53:04 +01:00
Peter Vandenberk
b4b50f20ac Also set options for egrep and fgrep 2020-03-01 13:51:55 +01:00
Vital Kolas
b6f2cfdb93 Exclude .idea folder from grep search scope 2020-03-01 13:51:52 +01:00
Marc Cornellà
498cd722b3
Add git version requirement in documentation 2020-02-29 14:56:37 +01:00
Marc Cornellà
14b4f62e65
updater: fix --autostash argument. Works for git > 1.7.1
See https://github.com/ohmyzsh/ohmyzsh/pull/7172#issuecomment-592875226
2020-02-29 14:53:06 +01:00
Alexander Schlarb
1689e9bb90
zsh_reload: respect $ZDOTDIR when searching for .zshrc (#7706) 2020-02-28 21:01:34 +01:00
Gianluca Recchia
befdb4649b
gitignore: add newline to gi output (#7586)
* Add trailing new line at the end of output
* Double-quote variable expansion
2020-02-28 21:00:44 +01:00
Michal Kielan
dddbb5c9eb
mercurial: add hga alias to README (#7547) 2020-02-28 20:51:38 +01:00
Cody Fuller
f94e55a1a9
mix: add format option to completion (#7256) 2020-02-28 20:42:18 +01:00
Wenbing Li
e61228282a
gradle: fix command option name in completion (#6586)
It should be `--rerun-tasks`, the original one miss a 's' at the end.
See https://docs.gradle.org/current/userguide/command_line_interface.html
2020-02-28 20:35:19 +01:00
Sven Hergenhahn
389de86cf5
pass: update completion to upstream version (675a002e) (#6475) 2020-02-28 20:29:44 +01:00
Ville Lautanala
c3984a7759
fasd: cache full fasd initialisation script (#6097)
Using `fasd —-init auto` will first detect terminal and then call
fasd again to generate the final initialisation script. Caching that gives a more significant performance boost.
2020-02-28 20:01:14 +01:00
Joshua Pratt
5023a4787b
stack: use builtin completion command (#6230) 2020-02-28 19:59:33 +01:00
Stephen Heuer
a2cad16790
lib: urlencode hostname in update_terminalapp_cwd (#6245)
Apple's Terminal doesn't open a new tab in your current directory if your hostname has UTF-8 characters in it. Percent encoding the host in addition to the path in update_terminalapp_cwd appears to solve this issue.

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-28 19:50:17 +01:00
Thomas Ruiz
864b441688
composer: keep composer autocompletion when using global (#5933) 2020-02-28 19:28:55 +01:00
Gustavo Maia
6f85dc2389
kitchen: change sed regex in completion to capture all commands (#5820)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-28 19:23:36 +01:00
Marc Cornellà
888ab9091c lib: add support for clippaste in WSL using powershell
Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
2020-02-28 19:07:05 +01:00
Ján Koščo
3e16d64347
geeknote: update completion (#4986)
Fixes Completion only working for first parameter
2020-02-28 17:29:11 +01:00