Commit Graph

7234 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
17428f3c9a lib: load bash completion functions automatically
Fixes #8614
2020-02-11 20:16:43 +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
05cae34676 Detect dependency plugins in candy-kingdom and kiwi themes
Fixes #5029
Fixes #5342
2020-02-11 17:43:59 +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
1c300d3a76 lib: add git function to determine repository name (#4989)
Closes #4989

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-10 21:11:31 +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
beab76edfc Update issues and PR templates (#8471)
Closes #8471
2020-02-10 18:56:48 +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
6bebc254e8 af-magic: fix showing aws prompt out of the box (#8243)
Fix issue related to #7615, #7747 and #6346

After the update, aws prompt (which should be visible out of the box) disappears when a user uses a theme af-magic, because of fact that plugins are loaded before themes.
This pull request fixes issue with not showing aws prompt in theme af-magic, by appending RPROMPT in theme af-magic instead overwriting.
2020-02-04 13:27:18 +01:00
578b086011 Link to Actions page in GitHub Action badge 2020-02-04 13:07:40 +01:00
df56d1ee1f Rename GitHub Action to CI 2020-02-04 13:02:20 +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
64a7f6b388 Create Github Action to run tests (#8569)
The published workflow tests the installer and checks the syntax of known zsh files
in the project.

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-01-29 00:22:27 +01:00
4e45e12dc3 virtualenvwrapper: fix finding script on Ubuntu 19.10 (#8451) 2020-01-19 20:42:45 +01:00
a04728f168 init: force use of builtin test in is_plugin
Fixes #8545
2020-01-19 17:52:15 +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
56297902e9 lib: add MSYS2 support to clipboard integration (#8542) 2020-01-16 18:19:56 +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
ca627655db Bump license year (#8512) 2020-01-01 04:45:52 +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
cf9aa420d6 Relocating chat/twitter
Moving down below the intro copy so that first content to new-comers is a description of the project
2019-12-27 06:43:43 -08: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