Commit Graph
3626 Commits
Author SHA1 Message Date
Marc Cornellà f17e0219fd dotenv: fix prompt newline 2020-02-13 18:33:24 +01:00
Maxime RichardandGitHub 634a50936a dotenv: add ZSH_DOTENV_PROMPT config (#8624) 2020-02-13 18:10:59 +01:00
Jonatan IvanovandGitHub 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 ChangandMarc Cornellà 3ec04997eb Add zsh-interactive-cd plugin 2020-02-12 18:37:28 +01:00
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
GregoireWandMarc Cornellà 15a03744a9 Remove invalid batteries (#8275) 2020-02-12 16:02:22 +01:00
Bruce WeirdanandMarc Cornellà 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àandMichael Wolman 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
hqingyiandMarc Cornellà 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 NicolettiandGitHub 9dffb3191d vagrant: obey VAGRANT_CWD when completing vagrant commands (#7219) 2020-02-11 18:46:56 +01:00
Henry DarnellandGitHub 83aa984d1a Add dotnet watch and dotnet watch run (#8612) 2020-02-11 01:39:20 +01:00
Yuan LiuandGitHub f362b69df6 common-aliases: fix loading of is-at-least function (#6215) 2020-02-10 21:19:03 +01:00
Grégory DAVIDandGitHub 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 CookandGitHub 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 ŠabataandGitHub 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 RankineandGitHub 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 RauschandGitHub 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 SharninandGitHub 05a38c8b99 lol: fix docs for yolo alias (#8576) 2020-01-29 16:28:34 +01:00
Babak K. ShandizandGitHub 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 KragandMarc Cornellà 4e45e12dc3 virtualenvwrapper: fix finding script on Ubuntu 19.10 (#8451) 2020-01-19 20:42:45 +01:00
James WrightandMarc Cornellà 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 DmitrievichandMarc Cornellà 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
AloxafandMarc Cornellà 78b07e92fd extract: add lz4 support (#8510) 2020-01-04 17:15:24 +01:00
sinriminandRobby Russell d9e64344aa -mAdd hitokoto plugin (#8422) 2019-12-28 21:04:24 -08:00
Zeshan KhattakandRobby Russell e034030f39 Laravel artisan commands extension (#8425) 2019-12-28 21:03:26 -08:00
Alaa QutaishandRobby Russell 42d04d386d Add kubectl all-namespaces aliases for k8s objects (#8434) 2019-12-28 20:59:14 -08:00
Alaa QutaishandRobby Russell df55690dad Add kubectl log since aliases (#8448) 2019-12-28 20:58:31 -08:00
Shaun TaboneandRobby Russell d5f8fac465 Feature/add dotnet plugin (#8503)
* Added dotnet CLI aliases and completions

* Modified README
2019-12-28 20:54:58 -08:00
Shaun TaboneandRobby Russell 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àandRobby Russell 6bac9eb103 extract: add lrz support (#8500) 2019-12-28 20:36:29 -08:00
khalil choudhryandRobby Russell 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 AssusandRobby Russell 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'MekandRobby Russell 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 SchmidtandMarc Cornellà 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