Commit Graph

3520 Commits

Author SHA1 Message Date
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
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
39e61614f2 Clean up Linux battery commands and syntax 2020-02-11 21:25:38 +01:00
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
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
3c5bbcf5b9 jump: add support for directories starting with a dot (#4661)
Closes #4661
2020-02-11 19:51:56 +01:00
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
9dffb3191d vagrant: obey VAGRANT_CWD when completing vagrant commands (#7219) 2020-02-11 18:46:56 +01:00
83aa984d1a Add dotnet watch and dotnet watch run (#8612) 2020-02-11 01:39:20 +01:00
f362b69df6 common-aliases: fix loading of is-at-least function (#6215) 2020-02-10 21:19:03 +01:00
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
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
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
e81782ac3f virtualenvwrapper: rewrite init script location code (#8521) 2020-02-07 12:06:06 +01:00
77aa1795d2 Revert "fix: Update tmux plugin to use modern terminfo. (#8582)"
This reverts commit 69caf98cf7.
2020-02-04 19:46:08 +01:00
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
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
05a38c8b99 lol: fix docs for yolo alias (#8576) 2020-01-29 16:28:34 +01:00
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
4e45e12dc3 virtualenvwrapper: fix finding script on Ubuntu 19.10 (#8451) 2020-01-19 20:42:45 +01:00
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
ce298d090b yarn: use zsh-completions latest version (493984e) 2020-01-19 13:39:18 +01:00
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
78b07e92fd extract: add lz4 support (#8510) 2020-01-04 17:15:24 +01:00
d9e64344aa -mAdd hitokoto plugin (#8422) 2019-12-28 21:04:24 -08:00
e034030f39 Laravel artisan commands extension (#8425) 2019-12-28 21:03:26 -08:00
42d04d386d Add kubectl all-namespaces aliases for k8s objects (#8434) 2019-12-28 20:59:14 -08:00
df55690dad Add kubectl log since aliases (#8448) 2019-12-28 20:58:31 -08:00
d5f8fac465 Feature/add dotnet plugin (#8503)
* Added dotnet CLI aliases and completions

* Modified README
2019-12-28 20:54:58 -08:00
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
6bac9eb103 extract: add lrz support (#8500) 2019-12-28 20:36:29 -08:00
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
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
d56d6dc145 Plugins: repo - add more aliases. (#3917) 2019-12-28 20:17:37 -08:00
9bfcab7d10 osx: use return instead of exit in spotify function 2019-12-28 18:07:09 +01:00
31219c0246 osx: fix exit on quit command in spotify function (#8504) 2019-12-28 18:01:26 +01:00
d99ddab0ca codeclimate: add README 2019-12-27 02:51:54 +01:00
c63fca8581 otp: add README and use clipcopy 2019-12-27 02:47:26 +01:00
67b5bfaaa3 Rename some plugin READMEs for consistency 2019-12-27 02:37:27 +01:00
8ea20fdca7 tmux-cssh: add README 2019-12-27 02:34:35 +01:00
ca8a5a0a84 svn-fast-info: add README, reorg. plugin 2019-12-27 02:25:59 +01:00
0c2f7514fc sfffe: add README 2019-12-27 02:07:59 +01:00
9655377b9e rbfu: add README 2019-12-27 01:54:02 +01:00
4fd2592007 paver: add README 2019-12-27 01:05:47 +01:00
e891fbff9e knife_ssh: small tweaks 2019-12-27 00:58:31 +01:00
9c0ceb7a52 knife_ssh: add README 2019-12-27 00:56:03 +01:00
132607447d knife: add README and reformat completion file 2019-12-27 00:50:00 +01:00
a952854c12 gnu-utils: add README, simplify plugin 2019-12-27 00:04:40 +01:00
59930902e1 glassfish: add README 2019-12-26 23:23:23 +01:00
7360d898d8 gas: add README 2019-12-26 23:12:17 +01:00