Commit Graph

414 Commits

Author SHA1 Message Date
Nils Winkler
31990490fa Added test for the "no" energy tool case 2017-11-02 06:46:01 +01:00
Nils Winkler
fef8e9ed09 Fixed ioreg test case 2017-11-02 06:46:01 +01:00
Nils Winkler
629b8522e5 Ensuring that output is always two digits at least
Show "04" instead of just "4".
2017-11-02 06:46:01 +01:00
Nils Winkler
86a87a33b5 Refactored command output handling 2017-11-02 06:46:01 +01:00
Nils Winkler
a573b63da2 Simplified acpi 2017-11-02 06:46:01 +01:00
Nils Winkler
7602b1da32 Added tests for WMIC 2017-11-02 06:46:01 +01:00
Nils Winkler
601202e816 Simplified ioreg, added tests for no status 2017-11-02 06:46:01 +01:00
Nils Winkler
6b97283cbf Consolidated cases for pmset and ioreg 2017-11-02 06:46:01 +01:00
Nils Winkler
486c9e1382 Consolidated cases for acpi 2017-11-02 06:46:01 +01:00
Nils Winkler
b7b8a0afe0 Completed tests for upower command 2017-11-02 06:46:01 +01:00
Nils Winkler
d0b3205de0 Added an additional test case and a fix for using the pmset command
The other commands still need to be mocked and tested/fixed, too.
2017-11-02 06:46:01 +01:00
Pablo Diaz
9d0da715d3 fixed awskeys with all profiles 2017-10-27 22:53:41 +02:00
Michael Masi
083974484e Use custom SDKMAN_DIR if set 2017-10-21 19:15:55 -04:00
Tanzeeb Khalili
0cef421c97 Change default $GOPATH to $HOME/go
As of Go v1.8, $HOME/go is the default $GOPATH. See https://github.com/golang/go/issues/17262 for the discussion.
2017-10-14 02:13:55 -04:00
Mike Fiedler
14261ec5ea Update docker-compose plugin
The `--all` flag was removed in docker-compose 1.7.0 last year. https://github.com/docker/compose/pull/3466

Currently produces:
```
WARNING: --all flag is obsolete. This is now the default behavior of `docker-compose rm`
```
2017-10-10 09:01:39 -04:00
Jean Jordaan
ca6a1ae2db Use 'mktemp -t', leave tempfile cleanup to the OS 2017-09-28 21:54:58 +07:00
Nils Winkler
145ec5dfaa Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin
The original command_exists function will stay in the base plugin, but will no longer be used by other plugins or themes.
2017-09-17 21:05:59 +02:00
Nils Winkler
2742adbeaa Merge pull request #709 from claui/fix-osx-subshell-prompt
Preserve `PROMPT_COMMAND` exportedness for subshells
2017-09-17 20:47:02 +02:00
Maxim Kovgan
36d3c66ccd - the latest OS X (10.12.6) has bash 3.2.57, yes :)
- '-v' used before is not available until bash 4.x

Signed-off-by: Maxim Kovgan <max@opsguru.io>
2017-08-26 22:49:59 +03:00
Max Kovgan
c04754fa0e added bash-it metadata to operational function
- per @nwinkler CR request

Signed-off-by: Max Kovgan <max@opsguru.io>
2017-08-14 14:52:39 +03:00
Max Kovgan
ade87943e9 upd formatting post CR by @nwinkler
- indented from 4 space into 2
- cleared up a couple of tabs

Signed-off-by: Max Kovgan <max@opsguru.io>
2017-08-13 19:38:25 +03:00
Max Kovgan
dce7b9b874 reference implementation of #1016
sshagent plugin:
- manage setup of sshagent in bash session:
  - force opinionated agent management based on ~/.ssh/ file
    - support for shared file systems on different host (file name contains hostname)
  - check env for any live/dead agents
    if alive - use it
    otherwise - spawn our own

Signed-off-by: Max Kovgan <max@opsguru.io>
2017-08-13 19:36:52 +03:00
jayme
20a8f10102 added -L to curl options to avoid empty responses
- changed URL to non-www as well
2017-07-28 16:36:57 -04:00
Nils Winkler
4590042177 Merge pull request #997 from lfelipe1501/patch-1
Changes in the battery plugin and in the Atomic Theme
2017-07-13 08:42:46 +02:00
Luis Felipe Sánchez
a3e714e175 Update battery.plugin.bash
Added **pmset** command that improves the process of detecting the battery and its percentage
2017-07-12 18:59:47 -05:00
MaYuming
7006261b42 fix ips issue #998 2017-07-08 11:12:07 +08:00
MaYuming
e687857eb0 fix ips issue #998 2017-07-06 14:50:53 +08:00
Luis Felipe Sánchez
222385c040 Update battery.plugin.bash
Fixed UPOWER command check when checking battery status
2017-07-02 17:41:06 -05:00
MaYuming
d88b068363 fix mkcd issue 2017-06-30 20:14:32 +08:00
MaYuming
6be02f8062 Revert "mkcd one or more dirs"
This reverts commit f369efe953.
2017-06-30 20:09:22 +08:00
MaYuming
f369efe953 mkcd one or more dirs 2017-06-30 18:45:22 +08:00
MaYuming
f19a8b88eb Revert "fix mkcd issue #993"
This reverts commit 8816edd805.
2017-06-30 18:27:43 +08:00
MaYuming
8816edd805 fix mkcd issue #993 2017-06-30 17:05:03 +08:00
Nils Winkler
09cb5552db Fixed missing quote 2017-06-28 09:42:34 +02:00
Nils Winkler
33cdfe03a7 Added some functions for using fzf 2017-06-28 09:42:34 +02:00
MaYuming
c52eb6456c Merge branch 'master' of https://github.com/Bash-it/bash-it 2017-06-28 13:02:30 +08:00
MaYuming
a9a9ff74ba fix and Strengthen the command myip 2017-06-28 13:02:21 +08:00
Nils Winkler
6f26f92c97 Fixed checks for enabled files in existing plugins 2017-06-24 17:31:30 +02:00
Nils Winkler
9ebbf6e6e5 Updated some load priorities
These will not work yet, since they are used across component types, but this will start working once everything is loaded from the same "enabled" directory.
2017-06-24 17:31:30 +02:00
Nils Winkler
9a3bd6dc30 Added load priority for nvm plugin 2017-06-24 17:31:30 +02:00
Andrew Ochsner
ce5dbbdada Remove prefixed space 2017-06-20 16:40:05 -05:00
shine
76d7dfd8bc Resolve https://github.com/Bash-it/bash-it/pull/980#pullrequestreview-44766052 2017-06-19 23:28:12 +05:30
shine
2d92d9817f Honor NVM_DIR shell variable set externally 2017-06-17 17:36:33 +05:30
shine
00bb17c3e5 Fix upower output bug with 100% 2017-06-11 15:27:45 +05:30
shine
98f13c7b6a Support upower for battery plugin 2017-06-11 14:33:22 +05:30
Nils Winkler
07b9305d2f Merge pull request #968 from lfelipe1501/master
Improvements in Atomic theme
2017-05-29 08:15:23 +02:00
nikitinvasily
843eb7eca3 Update autojump.plugin.bash 2017-05-28 12:59:04 +03:00
Luis Felipe Sánchez
176cf00f6c Update battery.plugin.bash
- Add WIndows Bash checker.
- Clean and organize the code.
2017-05-25 23:27:12 -05:00
Adam Wallis
659ecd0388 plugins: percol: Unalias zz before defining zz function
Percol defines zz alias by default. This ensures that the percol
plugin will work as expected.
2017-05-25 19:43:17 -04:00
CeleritasCelery
eb6ea164fb fixed spelling and grammar 2017-05-19 10:11:54 -06:00