Commit Graph

442 Commits

Author SHA1 Message Date
Adam Wallis
1a81ca8b8d Don't redefine powerline theme functions
In the case where a powerline theme is enabled in bash-it,
it seems prudent to avoid touching any of these functions.
2018-07-09 22:14:17 +00:00
Adam Wallis
6eb35644e6 Add powerline initialization plugin
Initializes powerline per the official powerline documentation:
https://powerline.readthedocs.io/en/master/usage/shell-prompts.html#bash-prompt
2018-07-09 21:56:42 +00:00
Pablo Palazon
5387aa025d Corrected grammatical errors 2018-06-14 09:22:45 +02:00
Pablo Palazon
8b0d752168 Add jgit-flow plugin 2018-06-11 18:44:54 +02:00
Nils Winkler
846f730a9e Renamed "fd" function to "fcd" to avoid clash with "fd" tool 2018-04-26 08:33:12 +02:00
Ricardo Lima
98c44fcc1e Fix quoting in the Explain plugin
Fixes bug where Bash prints a "command not found" message when the
function is run, due to incorrect quoting of the argument to the
meta function example.
2018-04-21 22:04:04 -04:00
Yukino Song
fa266e9b0c Change to _command_exists helper 2018-04-11 14:59:56 +08:00
Yukino Song
0b73975d04 Add support for pyenv-virtualenv 2018-04-10 17:12:22 +08:00
Piotr Rogoża
f8fd94d46f Fixed opening vim 2018-04-02 01:55:36 +02:00
Nils Winkler
f3439c7370 Merge pull request #1162 from kaimingguo/refresh-launchpad
Add reset launchpad layout function
2018-03-20 03:54:14 -04:00
cornfeedhobo
0c656bf269 add nodenv plugin 2018-03-17 13:06:13 -05:00
Kai-Ming Guo
f168ce8109 Add reset launchpad layout function
The layout will have returned to the default, placing all bundled
apps onto the first screen of Launchpad, and third party apps onto
the secondary (and third, if applicable) screens
2018-03-15 22:57:02 +08:00
Julio Borja Barra
137b700097 Change template for temp file creation
This makes the script compatible with other 'versions' of `mktemp`.
2018-03-07 12:54:01 +01:00
Sam Fonseca
75630b01d5 explicitly use python2 for svn proxy functions 2018-01-20 13:55:59 -05:00
Ira Abramov
19a2dd8bb8 Support filenames with spaces. Bash is magic sometimes. 2018-01-18 12:26:27 +02:00
Ira Abramov
af3ca28430 Just in case - make sure WebM output is marked to loop. 2018-01-18 12:01:18 +02:00
Ira Abramov
bb27aafee5 Fix a minute logic bug - if one file deletion is skipped, not all the following deletions will be skipped 2018-01-18 12:01:18 +02:00
Adam Wallis
3651a31c5e Fixes: 659ecd0388 plugins: percol: Check for alias zz before unalias
The original patch (659ecd0388)
unaliases the percol alias, however, does not validate if the alias
is already defined. This leads to the following message that is shown
everytime a new bash session is spawned where this variable is not
defined when the percol plugin is enabled.

bash: unalias: zz: not found
2018-01-10 19:58:29 -05:00
Ira Abramov
f693e7cb59 Adding GIF2WebM, but it actually works will with any video input file. 2018-01-03 19:56:34 +02:00
Ira Abramov
1620f2cc78 GIF plugin: Fix the FPS detection and add webm creation as a future-looking feature. 2018-01-03 19:10:07 +02:00
Nils Winkler
9832ea07af Merge pull request #1112 from seefood/ira-gifski
Oops, an important fix to the gif plugin options.
2017-12-14 10:39:41 +01:00
Nils Winkler
d77c3b1dab Update direnv.plugin.bash
Added link to direnv web site.
2017-12-11 08:43:53 +01:00
Dan Wendorf
21fec8ff15 Add direnv plugin
See https://direnv.net/
2017-12-08 10:07:54 -08:00
Ira Abramov
99d494535b Oops, an important fix to the gif plugin options. 2017-12-04 15:42:23 +02:00
Ira Abramov
21637a6065 GIF plugin: Added FPS auto-detection, support for filenames with spaces, and localized variables 2017-11-30 13:07:41 +02:00
Ira Abramov
7935ca4834 @lwinkler suggested this takes over the old plugin. 2017-11-22 14:44:09 +02:00
Ira Abramov
605f30381f Add alerting feature - warn if the resulting GIF is too large for twitter or other threasholds. 2017-11-22 14:43:02 +02:00
Ira Abramov
3a90bf18fb New and improved/enhanced vid-to-gif function 2017-11-20 19:38:46 +02:00
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