Commit graph

3468 commits

Author SHA1 Message Date
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
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
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
Ján Koščo 3e16d64347
geeknote: update completion (#4986)
Fixes Completion only working for first parameter
2020-02-28 17:29:11 +01:00
mickk-on-cpp 08b04f5df2
fancy-ctrl-z: ensure widgets are called with full context (#4838)
This allows other plugins that hook e.g. accept-line to identify the
fancy-ctrl-z widget as the caller and take appropriate steps when
necessary.

See https://github.com/tarruda/zsh-autosuggestions/issues/82#issuecomment-181133379
2020-02-28 17:27:16 +01:00
Chai Feng 368198b761
Fix an issue with escape characters (#7979)
Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
2020-02-27 22:47:06 +01:00
Marc Cornellà 2c0315dba4 ng: refactor README 2020-02-27 19:26:55 +01:00
Guillermo del Fresno 79fff1ee49
macports: add rdeps and rdependents completion (#4717) 2020-02-27 18:55:14 +01:00
Miguel Vaello Martínez ee7a9f6fe6 jhbuild: add some missing commands and update README (#5195)
Commands: make, tinderbox.

Closes #5195

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-27 18:51:44 +01:00
Adrien Plazas 573901dd46
jhbuild: add shell alias (#3707)
This adds "jhsh" as an alias for "jhbuild shell" to the JHBuild plugin.
2020-02-27 18:45:53 +01:00
Ciacho 011c7153d5 nmap: add alias for ICMP scan (#4807)
Closes #4807
2020-02-27 18:25:39 +01:00
Petr Bělohlávek 6b54302b90 python: add alias to run the proper IPython based on virtualenv
Current state: a user invokes `ipython` and is provided with the IPython
instance regarding the `$PATH`.

Proposed state: a user invokes `ipython` (which is a new alias in the
*python plugin*) and is provided with the proper IPython instance regarding
the currently activated virtualenv.

Example: the user's default Python is 2.7 with installed IPython 2.7. User
activates Python 3.5 virtualenv where he installs IPython 3.5. After
activating the environment, one expects `ipython` to run the version 3.5,
which does not happen by default. Instead, IPython 2.7 is used, which in
counter-intuitive and often causes problem.

Closes #5797
2020-02-27 17:17:01 +01:00
Marc Cornellà 6cb8ff391d vagrant: document aliases 2020-02-27 15:21:10 +01:00
Marc Cornellà 3c61bac9a1
vagrant: add common aliases (#3762) 2020-02-27 15:20:19 +01:00
wallace11 01bfb57446
zsh-interactive-cd: add vi-mode support (#8681) 2020-02-26 16:59:59 +01:00
Marc Cornellà 609890847d
npm: hardcode completion function and delete cached one (#8679)
Fixes #8665
2020-02-25 22:23:37 +01:00
Marc Cornellà 3e9e385d98 battery: remove redundant grep calls in battery_pct function 2020-02-25 15:41:17 +01:00
Yahav Itzhak b72607bc8e
Add JFrog CLI plugin (#8250) 2020-02-25 12:00:25 +01:00
Marc Cornellà 7290a08bf6 battery: fix floating point output in macOS
Fixes #8676
2020-02-25 11:56:26 +01:00
Andy Pickle f9a2d8cae3
vscode: add documentation for running in macOS (#8674) 2020-02-24 20:13:16 +01:00
Marc Cornellà f4b4a446ac Polish themes plugin and error out if theme not found 2020-02-19 19:41:02 +01:00
Willy Weiskopf 6adad5c300 Move random theme functionality into "random" theme
The statements for selecting a random theme in oh-my-zsh.sh and the themes
plugin are duplicate. Most people eventually settle on a theme, making those
lines in oh-my-zsh.sh superfluous. To address those, it may makes sense to put
the random theme functionality into a theme of its own (since themes are just
zsh scripts.
2020-02-19 18:20:28 +01:00
Sir Mobus Gochfulshigan Dorphin Esquire XXIII eeb49bf5b0
systemd: add prompt function to show systemd units' status (#7657)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-18 23:04:14 +01:00
Ujwal Dhakal e8609b857c
git: add grename to rename a local branch and in the origin remote (#8622)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-18 21:05:52 +01:00
Kshitij Nikhal 47eae26bf6
web-search: add wolframalpha search engine (#8638) 2020-02-18 10:20:54 +01:00
Marc Cornellà 1381da15a4
arcanist: document aliases 2020-02-17 17:47:43 +01:00
Alexandre GOMES fbbfd0f8a8
arcanist: add arc diff --create alias (#8610) 2020-02-17 17:44:48 +01:00
Harry 0bcecf2f63
dotnet: use official dotnet completion (#8518) 2020-02-15 19:19:57 +01:00
Roman aa4146a9a4
git: add alias for git stash --include-untracked (#8617) 2020-02-15 18:28:02 +01:00
Manuel Silva 72168aec3d
cloudapp: fix copy-paste mistake in README (#8629) 2020-02-15 18:26:20 +01:00
Roey Darwish Dror 52f9238b16
fzf: support for NixOS and Void Linux (#8618) 2020-02-13 18:57:52 +01:00
Marco Seguri 4fc570b0d4
kubectl: avoid conflict with existing f aliases in kca alias (#8625) 2020-02-13 18:50:56 +01:00
Marc Cornellà f17e0219fd dotenv: fix prompt newline 2020-02-13 18:33:24 +01:00
Maxime Richard 634a50936a
dotenv: add ZSH_DOTENV_PROMPT config (#8624) 2020-02-13 18:10:59 +01:00
Jonatan Ivanov a6df94d2c6
gradle: run gradle command instead of alias (#8620)
- Similarly to the mvn plugin
- Without this fix, the shell crashes in some cases
2020-02-12 21:52:47 +01:00
Henry Chang 3ec04997eb Add zsh-interactive-cd plugin 2020-02-12 18:37:28 +01:00
Mazin Ahmed e178ae39b4
dotenv: prompt before executing dotenv file (#8606)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-12 17:51:40 +01:00
GregoireW 15a03744a9 Remove invalid batteries (#8275) 2020-02-12 16:02:22 +01:00
Bruce Weirdan b8b8762915 Report only active battery (#4726)
On a system with multiple batteries (like thinkpads) report percentage
and time remaining only for the active battery (the one being
discharged).

Ideally we should report all batteries, but acpi only shows time remaining
for the active battery. Also callers of these functions expect a single
return value. This is still better than reporting 596% remaining (like it
did on my laptop).

For the reference, the output of acpi command with multiple batteries looks
like this:

    Battery 0: Unknown, 5%
    Battery 1: Discharging, 86%, 03:14:04 remaining
2020-02-12 15:29:57 +01:00
Marc Cornellà 5f6f7b6e8d Various syntax fixes and function naming equivalence
- Fix code style
- Fix local definitions
- Don't declare unnecessary variables
- Use `command` before grep
2020-02-11 21:25:38 +01:00
Marc Cornellà 39e61614f2 Clean up Linux battery commands and syntax 2020-02-11 21:25:38 +01:00
Marc Cornellà 1bd7a7ad21 Fix calculation for battery percentage (#4774)
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com>
2020-02-11 21:25:38 +01:00
Marc Cornellà 561e7169ac jump: fix for `marks' and CTRL+G key binding
- marks printed an error when $MARKPATH didn't exist or didn't have any marks
  in it.
- The CTRL+G key binding overwrote an argument when it couldn't match it to
  an existing mark.
2020-02-11 20:12:01 +01:00
hqingyi 3c5bbcf5b9 jump: add support for directories starting with a dot (#4661)
Closes #4661
2020-02-11 19:51:56 +01:00
Marc Cornellà bc67a55fe8 jump: fix issues in plugin and document CTRL+G key binding
- Fixes `readlink -e` dependency which isn't supported in macOS
  (fixes #3235).
- Uses native zsh wildcard expansion instead of calls to `ls`.
- Prepends commands with `command` and `builtin` to bypass aliases
  and functions.
- Documents CTRL+G key binding to substitute mark name in the command
  line with the mark path (https://github.com/ohmyzsh/ohmyzsh/pull/2045#issuecomment-22826540).
2020-02-11 19:41:43 +01:00
Umberto Nicoletti 9dffb3191d
vagrant: obey VAGRANT_CWD when completing vagrant commands (#7219) 2020-02-11 18:46:56 +01:00
Henry Darnell 83aa984d1a
Add dotnet watch and dotnet watch run (#8612) 2020-02-11 01:39:20 +01:00
Yuan Liu f362b69df6
common-aliases: fix loading of is-at-least function (#6215) 2020-02-10 21:19:03 +01:00
Grégory DAVID d88fbe625f
systemadmin: fix header line sorting in pscpu (#6167)
Inside `pscpu` and `pscpu10` aliases, remove sorting of the header line.
2020-02-10 21:18:13 +01:00
Isaac Cook 22cf7159ec
kube-ps1: add example for common pitfall (#8318)
I ran into this issue, looks like maybe a few other people did as well.

https://github.com/jonmosco/kube-ps1/issues/28#issuecomment-359761463
A simple clarification seems helpful.
2020-02-10 20:31:55 +01:00
Petr Šabata bfec31666a
systemd: refactor and add latest commands (#6250)
* Order systemctl commands alphabetically

Simplifying the plugin maintenance.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Include the latest systemctl commands

Based on systemd-233.  I'm still keeping the old, now unsupported
commands for backwards compatibility as well.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Add daemon-reload (#3701)

Closes #3701
Co-authored-by: Javier Tia <javier.tia@gmail.com>
2020-02-10 19:16:02 +01:00
Alastair Rankine e81782ac3f
virtualenvwrapper: rewrite init script location code (#8521) 2020-02-07 12:06:06 +01:00
Marc Cornellà 77aa1795d2 Revert "fix: Update tmux plugin to use modern terminfo. (#8582)"
This reverts commit 69caf98cf7.
2020-02-04 19:46:08 +01:00
Dennis Rausch 69caf98cf7
fix: Update tmux plugin to use modern terminfo. (#8582)
* fix: Update tmux plugin to use modern terminfo.

* doc: Update documentation for tmux plugin.
2020-01-31 01:32:53 +01:00
Marc Cornellà dcffc89580 aws: fix array assignment in asp function
Older zsh versions require this syntax change.
Fixes #8525
2020-01-30 13:32:55 +01:00
Nikita Sharnin 05a38c8b99
lol: fix docs for yolo alias (#8576) 2020-01-29 16:28:34 +01:00
Babak K. Shandiz 7ff77120c1
vscode: use insiders build if stable not found (#8568)
* 🔨 Add calling VS Code Insiders

* ✏️ Update README.md
2020-01-29 13:51:40 +01:00
Jimmy Merrild Krag 4e45e12dc3 virtualenvwrapper: fix finding script on Ubuntu 19.10 (#8451) 2020-01-19 20:42:45 +01:00
James Wright 530056d50d colored-man-pages: force env command (#8551)
Invoke `env` via `command` to ignore shell functions and aliases.
2020-01-19 17:47:28 +01:00
Marc Cornellà ce298d090b yarn: use zsh-completions latest version (493984e) 2020-01-19 13:39:18 +01:00
Vlad Dmitrievich aaa87063a2 pyenv: only run if pyenv not in $PATH (#8462)
This is needed if in between the update of `$PATH` the `$commands` parameter hasn't
been updated, i.e. if there was no `rehash` or `hash -rf` or automatic rehash.

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-01-15 14:08:45 +01:00
Aloxaf 78b07e92fd extract: add lz4 support (#8510) 2020-01-04 17:15:24 +01:00
sinrimin d9e64344aa -mAdd hitokoto plugin (#8422) 2019-12-28 21:04:24 -08:00
Zeshan Khattak e034030f39 Laravel artisan commands extension (#8425) 2019-12-28 21:03:26 -08:00
Alaa Qutaish 42d04d386d Add kubectl all-namespaces aliases for k8s objects (#8434) 2019-12-28 20:59:14 -08:00
Alaa Qutaish df55690dad Add kubectl log since aliases (#8448) 2019-12-28 20:58:31 -08:00
Shaun Tabone d5f8fac465 Feature/add dotnet plugin (#8503)
* Added dotnet CLI aliases and completions

* Modified README
2019-12-28 20:54:58 -08:00
Shaun Tabone 8ed19ab54d Added MicroK8s plugin for ZSH (#8499)
* Added MicroK8s plugin for ZSH

* Added caching for kubectl and helm commands

* Added title in compadd and enhanced README
2019-12-28 20:37:38 -08:00
Marc Cornellà 6bac9eb103 extract: add lrz support (#8500) 2019-12-28 20:36:29 -08:00
khalil choudhry b0be0439e5 Feature/ionic plugin aliases (#8494)
* Add DS_Store to gitignore

* Add ionic aliases

* Add ionic plugin readme
2019-12-28 20:35:31 -08:00
Charles Assus 016dd30f4c New alias zwip that launch cucumber with the :wip profile (#4111)
* Add zeus rake cucumber:wip, alias swip

* Add the right command for zwip alias :D

* Add the right command

* respect the coding style

* respect the coding final
2019-12-28 20:29:07 -08:00
Khas'Mek d56d6dc145 Plugins: repo - add more aliases. (#3917) 2019-12-28 20:17:37 -08:00
Marc Cornellà 9bfcab7d10 osx: use return instead of exit in spotify function 2019-12-28 18:07:09 +01:00
Carver Schmidt 31219c0246 osx: fix exit on quit command in spotify function (#8504) 2019-12-28 18:01:26 +01:00
Marc Cornellà d99ddab0ca codeclimate: add README 2019-12-27 02:51:54 +01:00
Marc Cornellà c63fca8581 otp: add README and use clipcopy 2019-12-27 02:47:26 +01:00
Marc Cornellà 67b5bfaaa3 Rename some plugin READMEs for consistency 2019-12-27 02:37:27 +01:00
Marc Cornellà 8ea20fdca7 tmux-cssh: add README 2019-12-27 02:34:35 +01:00
Marc Cornellà ca8a5a0a84 svn-fast-info: add README, reorg. plugin 2019-12-27 02:25:59 +01:00
Marc Cornellà 0c2f7514fc sfffe: add README 2019-12-27 02:07:59 +01:00
Marc Cornellà 9655377b9e rbfu: add README 2019-12-27 01:54:02 +01:00
Marc Cornellà 4fd2592007 paver: add README 2019-12-27 01:05:47 +01:00
Marc Cornellà e891fbff9e knife_ssh: small tweaks 2019-12-27 00:58:31 +01:00
Marc Cornellà 9c0ceb7a52 knife_ssh: add README 2019-12-27 00:56:03 +01:00
Marc Cornellà 132607447d knife: add README and reformat completion file 2019-12-27 00:50:00 +01:00
Marc Cornellà a952854c12 gnu-utils: add README, simplify plugin 2019-12-27 00:04:40 +01:00
Marc Cornellà 59930902e1 glassfish: add README 2019-12-26 23:23:23 +01:00
Marc Cornellà 7360d898d8 gas: add README 2019-12-26 23:12:17 +01:00
Marc Cornellà 38929084f9 fastfile: add README 2019-12-22 23:06:35 +01:00
ProbstDJakob e21fbe7dff colorize: update plugin to support less options (#8392) 2019-12-22 21:21:14 +01:00