Nils Winkler
912d0b88d5
Merge pull request #1602 from cornfeedhobo/add-fasd-plugin
...
Add fasd plugin
2020-05-19 09:32:12 +02:00
Nils Winkler
0122497e6c
Removed VS Code Plugin, since VS Code provides the `code` command out of
...
the box now.
2020-05-13 10:25:36 +02:00
Nils Winkler
ec384be4be
Remove echo when a dead SSH Agent PID is found
...
This case can be safely ignored, no need to print a message for that.
Fixes #1579
2020-05-02 14:46:05 +02:00
Rick Rezinas
4835f1905e
fix for issue #1418
2020-04-27 21:22:23 -07:00
Ralph Gutmann
306be4dd4f
(minor) options fix
2020-04-21 18:34:28 +02:00
Ralph Gutmann
ce160ff314
added tar extract-directory creation and usage (also removal of unnecessary recursion where appropriate)
2020-04-21 18:12:56 +02:00
Uco Mesdag
dfeb72d6aa
Added function metadata and bash version check
2020-04-13 13:35:52 +02:00
Uco Mesdag
e73f6dbc62
Reworded the about
2020-04-13 02:37:24 +02:00
Uco Mesdag
b220c0e744
Plugin to toggle sudo before your current or last command
2020-04-13 02:30:28 +02:00
cornfeedhobo
5faeb6dc5c
add simple fasd plugin
2020-04-11 16:27:17 -05:00
Alex Thiessen
7a83c56d3a
plugins/base: Detect HTTP errors in `myip()`
...
Out of the box, `curl` reports success (via exit code) even if the
server returns an error, e.g. _429 Too Many Requests_ which was
sometimes the case with `http://myip.dnsomatic.com `. So, errors went
undetected.
There is the `--fail` switch which enables us to use the exit code the
way we need:
> -f, --fail
> (HTTP) Fail silently (no output at all) on server
> errors. This is mostly done to better enable scripts etc
> to better deal with failed attempts. In normal cases
> when an HTTP server fails to deliver a document, it
> returns an HTML document stating so (which often also
> describes why and more). This flag will prevent curl
> from outputting that and return error 22.
Use it to make the `myip()` deliver results reliably.
2020-04-07 00:01:09 +02:00
David Farrell
f52453c643
Fix goenv plugin
2020-03-25 11:29:12 -07:00
Nils Winkler
52123d5072
Merge pull request #1510 from cornfeedhobo/add-goenv
...
Add goenv plugin
2020-03-25 08:42:17 +01:00
David Farrell
ab7f15bee1
Added a comment
2020-03-10 23:02:33 -07:00
David Farrell
8e9dadfaad
Adds metadata + support for multiple arguments
2020-03-10 22:58:39 -07:00
cornfeedhobo
58d3acfd88
add goenv plugin
2020-03-10 02:03:05 -05:00
David Farrell
6419d9246d
Add cht.sh plugin
2020-03-09 12:38:05 -07:00
Taro Sato
a7a777b20a
Pass all the expected arguments to completion function
2020-02-28 01:04:19 -08:00
Taro Sato
fbc8f7ddf4
Add comment explaining compl_func_args
2020-02-23 18:40:54 -08:00
Taro Sato
fe26adf7ac
Pass the aliased command as an argument to _filedir_xspec
2020-02-22 16:20:40 -08:00
Nils Winkler
48383afc49
Renamed the fuck plugin
2020-02-16 12:38:14 +01:00
Nils Winkler
54673712be
Updated init code for fuck
...
Moved to a plugin, removed "fuck" alias.
2020-02-16 12:37:58 +01:00
Nils Winkler
fb7160cf60
Merge pull request #1493 from bingzhangdai/patch-1
...
Create ~/.ssh and ~/.ssh/config if does not exits
2020-02-16 12:33:04 +01:00
Bingzhang Dai
f7cb2ef5c6
Update ssh.plugin.bash
2020-02-16 15:44:50 +08:00
Bingzhang Dai
bf7da247bf
Revert changes
2020-02-16 15:42:51 +08:00
Bingzhang Dai
72224ab034
Create ~/.ssh and ~/.ssh/config if does not exits
2020-02-16 15:39:37 +08:00
John McBride
a76a9ee437
Remove fasd zz function from percol plugin
...
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-14 14:03:54 -07:00
John McBride
b442267d2d
Remove vf funcion as fasd unsupported
...
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-05 15:15:13 -07:00
John McBride
3f293c253f
Safe array expansion
...
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-03 15:37:54 -07:00
John McBride
6cd634dd85
Initilize as array in example
...
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-03 15:32:27 -07:00
John McBride
b4b4ccfe31
Correct bind option
...
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-03 12:52:47 -07:00
John McBride
036c26dbed
Update jump plugin
...
- remove z plugin
- remove fasd plugin
- update test that referenced fsad
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-03 11:43:24 -07:00
Gurkirat Singh
29bb382cc1
added man colors plugin
2019-11-27 18:01:28 +05:30
cornfeedhobo
377f02714d
Simplify multiple path support in go plugin ( #1284 )
...
* simplify wrapped pathmunge logic. update tests to account for cases with spaces in $PATH.
2019-11-20 08:49:34 +01:00
markusdd
c9054e25a9
implement feedback
2019-10-07 14:19:38 +02:00
markusdd
c0ac3d8393
Update less-pretty-cat plugin to support pygment style selection
...
Pygments offers great styles and in dark terminals the default is unsatisfactory.
Use two new env variables BASH_IT_CLESS_STYLE and BASH_IT_CCAT_STYLE to select pygment themes.
Availables styles can be listes using pygmentize -L styles
2019-10-05 15:50:59 +02:00
Stefano Cislaghi
a0af4f40cd
Added proxy exceptions (noproxy) for npm
2019-09-02 11:40:51 +01:00
Nils Winkler
f29a195f49
Make sed replacements work for both BSD and GNU sed
...
Fixes #1411
2019-07-31 08:50:33 +02:00
Nils Winkler
4566a159fb
Merge branch 'master' into fix/node-plugin-path
2019-07-30 08:53:38 +02:00
Nils Winkler
93b2443410
Merge pull request #1402 from skorn/master
...
Remove errors if plugin executable not available
2019-07-30 08:50:41 +02:00
Brandon Waskiewicz
9735ad7b5c
Ensure node paths are appended to existing $PATH
2019-07-29 14:07:34 -04:00
Martin Lariz
12c49bd22f
Remove errors if plugin executable not available
2019-07-29 07:07:58 -07:00
Arunvel Sriram
ef31690b07
Add helper function to add all ssh private keys to agent
2019-07-27 22:51:15 +05:30
Ahmed Masud
ce935801a3
Fixed test of whether or not current session is interactive
2019-07-06 16:53:45 -04:00
Nils Winkler
9b4a049571
Merge pull request #1371 from trmaphi/add-osx-plugin-for-jvms
...
Add plugin list jvms and pick default system-wide
2019-05-06 08:07:55 +02:00
Ira Abramov
abecfdd3b7
Fix the git plugin to work on OSX+brew
2019-04-28 14:44:13 +03:00
Truong Ma Phi
9945e078b3
Add plugin list jvms and pick default system-wide
2019-04-28 17:44:22 +07:00
simowdas
8f09914e63
Update battery.plugin.bash
...
Add -i option to grep BAT in upower to ignore case distinctions.
2019-04-11 10:57:04 +02:00
Joao Pereira
b5c9ecaf27
Add CNB pack cli plugin
...
Adds the plugin that enables autocompletion for pack CLI
2019-04-04 17:51:32 -04:00
markusdd
f14d4fcc3c
turn coloured cat and less into ccat and cless
...
old approach would override systems cat, which is malicious when used in conjunction with shell piping or redirection
2019-02-22 14:41:01 +01:00
Nils Winkler
ca5c512a35
Removed 'local' keyword
2018-12-18 09:26:25 +01:00
Travis Swicegood
7f34570a05
Merge pull request #1267 from cornfeedhobo/fix-go-env-vars
...
Add multiple path support to go plugin
2018-12-06 22:07:21 -06:00
cornfeedhobo
3645305644
add go plugin tests and update list reversal logic
2018-12-06 17:07:03 -05:00
Septian Dwic
310ee837c9
init - bash its automatically load auto-completion
2018-11-21 02:05:19 +07:00
Eduardo Bellido Bellido
b3f7de3893
Support XDG in fzf plugin
2018-11-11 14:14:02 +01:00
cornfeedhobo
4ff305c009
add multiple path support to go plugin
2018-11-09 18:55:19 -05:00
Eduardo Bellido Bellido
3c8dbf3cd4
Allow custom aws config files path
...
Honor the environment variables:
AWS_CONFIG_FILE
AWS_SHARED_CREDENTIALS_FILE
in the aws plugin.
+info:
https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
2018-10-31 19:18:37 +01:00
Nils Winkler
d4f4e33ad5
Merge pull request #1254 from padilo/aws-session-token
...
aws session token support on awskeys
2018-10-31 16:09:54 +01:00
Pablo Diaz
12ff176c55
aws session token support
2018-10-30 22:54:46 +01:00
Robert Treat
84b6fde653
Make Postgres name use consistent
2018-10-29 18:34:28 -05:00
Nils Winkler
82776162d1
Merge pull request #1251 from edubxb/aws-variable-name
...
Update AWS variable name
2018-10-29 09:06:20 +01:00
Eduardo Bellido Bellido
089b10b37c
Update AWS variable name
...
AWS_DEFAULT_PROFILE is deprecated, AWS_PROFILE is the correct one now.
+info:
https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
2018-10-27 23:03:20 +02:00
Septian Dwic
6cc7b9112e
Don't export ruby-build/bin to PATH
...
If ruby-build is installed as a rbenv plugin, ruby-build/bin
directories automatically included.
2018-10-26 21:49:52 +07:00
Enze Chi
502de11c2f
Use go binary to get default GOROOT and GOPATH
2018-10-18 10:57:54 +11:00
Enze Chi
f847371447
Avoid double semicolon in the PROMPT_COMMAND
...
The direnv bash hook already add a semicolon to the PROMPT_COMMAND and this
plugin will add another one if direnv is installed. This commit will check if
the PROMPT_COMMAND ends with semicolon to avoid have double ones.
2018-08-02 22:01:15 +10:00
Nils Winkler
86950c3d7c
Merge pull request #1216 from adawalli/jump
...
Add plugin for 'jump'
2018-07-19 08:34:16 +02:00
Nils Winkler
8668ff05ca
Merge pull request #1215 from adawalli/fzf-fd
...
Use fd for fzf if available on system
2018-07-19 08:31:38 +02:00
Adam Wallis
03e26ef7a4
Only initialize FZF_DEFAULT_COMMAND if not already set
2018-07-18 10:13:49 -04:00
Adam Wallis
ac42a6233c
Allow jump plugin to fail silently when jump not installed
...
Per recommendations from @nwinkler, allow the jump test to fail
silently. This helps in cases where users are SSH'ing in, or for some
other reason are using bash-it environment on a foreign machine.
2018-07-18 09:52:52 -04:00
Adam Wallis
dd081b6e5f
Add plugin for 'jump'
...
Considering FASD has been deprecated, jump does the same thing but is
actively maintained!
https://github.com/gsamokovarov/jump
2018-07-17 13:58:55 -04:00
Adam Wallis
e8c3237fb4
Use fd for fzf if available on system
...
fd is orders of magnitude faster when searching for files. This patch
will force fzf to use fd instead of find.
This change is implemented per the recommendation:
https://github.com/junegunn/fzf#environment-variables
2018-07-17 10:56:36 -04:00
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
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
Luis Felipe Sánchez
13f30838ba
Improvements in the theme for a better appearance, I hope you like, added the option of downloading the battery for a better style.
...
Improvements in the theme for a better appearance, I hope you like,
added the option of downloading the battery for a better style.
2017-04-28 13:55:38 -05:00