Commit Graph

436 Commits

Author SHA1 Message Date
Nils Winkler
7b5502e6f6 Merge pull request #743 from MattBroyles/master
GitToWork plugin for .gitignore automation
2016-06-20 18:09:50 +02:00
Matt Broyles
fe8254b574 Moved gittowork to git.plugin.bash, removed gittowork.plugin.bash 2016-06-20 10:32:01 -05:00
Matt Broyles
478e8ddb1b Inserted newline after gittowork 2016-06-15 20:40:19 -05:00
Matt Broyles
454bbd8d74 Added gittowork plugin 2016-06-15 20:38:55 -05:00
Nils Winkler
8929b13c6e Updated meta information 2016-05-23 08:45:46 +02:00
Nils Winkler
64a620d9e2 Renamed killrails plugin to rails 2016-05-23 08:45:46 +02:00
Shawn Hensley
bf69bbc612 Add history cite. Remove trailing semicolon and space. 2016-05-22 01:00:46 -05:00
Nils Winkler
d32316bdf9 Fixed group meta tag 2016-05-19 09:20:39 +02:00
Nils Winkler
497f1a9520 Fixed indentation
It was using a mixture of tabs and spaces. Converted to 2 spaces.
2016-05-19 09:20:39 +02:00
Matt Broyles
76d026f2ad added about and group metadata 2016-05-18 09:33:12 -05:00
Matt Broyles
05385d43d7 Moved killrails to plugins, added newline, added meta information, cut indentation to 2 spaces. 2016-05-17 16:10:54 -05:00
ravenhall
e689e1fdb9 Initial plenv plugin created. Fails silently when plenv not found, only munges path if plenv path exists 2016-05-09 18:27:57 -05:00
Nils Winkler
ca889da3e7 Removed embedded todo script
Fixes #710
2016-04-26 09:20:45 +02:00
Claudia
3f05d6b3fd Fix prompt issue for non-login subshells in OS X
This commit fixes an issue with themes on OS X which are sometimes
left in a partially broken environment with missing dependencies.

When a `BASH_IT_THEME` is active on OS X and has a
dynamic `PROMPT_COMMAND` which is not exported, and such
`PROMPT_COMMAND` is backed by shell functions which are not
exported either, and at the same time the theme is not
OS-X-aware (regarding `update_terminal_cwd`), and the
user launches a (non-login) interactive subshell from
the OS X Terminal, a `command not found` appears on every
command invocation.

The issue is caused by a regression in PR #514, which attempts to
inject `update_terminal_cwd` into the prompt. As a side effect, it
also escalates the exportedness of `PROMPT_COMMAND` while the
theme-specific backing functions (which power the dynamic prompt)
remain unexported.

The subshell cannot recover from this partially broken environment
because unlike in Linux, Bash-it on OS X is not invoked for non-login
subshells. The dependencies remain broken which leads to the error.

The fix is to preserve `PROMPT_COMMAND`’s exportedness on OS X,
leaving the individual theme responsible for consistently
exporting either all or nothing of its environment.
2016-04-22 19:27:18 +02:00
Nils Winkler
e5d50f0d97 Simplified logic for both Linux and OS X
Avoiding the if statements, using exit code of `grep -q` instead.

Reverted the change that adds a space after the AC char. Opting for a
default value, allowing to override from one's profile.
2016-04-14 08:16:32 +02:00
Nils Winkler
a9c5670c2c Added AC indicator support on OS X
Not sure about the logic for returning 1/0 from the function, though -
will have to clarify.
2016-04-12 09:56:03 +02:00
Nils Winkler
1e81df5004 Added Autojump plugin
See https://github.com/wting/autojump for more details.

Currently only supports the version installed through Homebrew on OS X.
Please feel free to provide a PR for supporting additional installation
options.
2016-04-05 08:04:47 +02:00
Eduardo Bellido Bellido
183c514881 Make #691 work on Linux 2016-03-27 00:03:40 +01:00
Travis Swicegood
f3f4f0a8f9 Merge pull request #693 from tomashavlas/ssh-multihost
Added support for multiple aliases/hostnames in single line for ssh completion and plugin
2016-03-25 17:54:42 -05:00
Tomáš Havlas
b835b3d9ce Added support for multiple aliases/hosts in single line for ssh completion and plugin 2016-03-25 23:29:33 +01:00
Travis Swicegood
ae179df0c2 Merge pull request #691 from tswicegood/upgrade-fasd
Update fasd to use installed version instead of embedded
2016-03-25 17:28:28 -05:00
Travis Swicegood
5b6b7392de Include a note in code about the upstream bugfix and remove trailing spaces 2016-03-25 17:18:14 -05:00
Travis Swicegood
06b458c896 Replace embedded fasd with initialization
There are multiple ways to install fasd, but the initialization
still needs to happen. Currently, fasd is broken in bash in that
it doesn't maintain the exit code properly. This custom init removes
the call to `fasd --init bash-hook` and replaces it with the version
that would be generated once fasd PR #72 is merged.

See: https://github.com/clvv/fasd/pull/72
2016-03-25 17:08:35 -05:00
Travis Swicegood
39cbb70cc5 Merge pull request #642 from cs-networks/master
Fix issue with last exit status getting swallowed.
2016-03-25 15:13:16 -05:00
Travis Swicegood
c600d82f46 Update to latest version of fasd.
This brings the fasd up to November 5, 2015.

Commit imported: d41c4b0470
2016-03-25 10:55:04 -05:00
Travis Swicegood
c5de52aef3 Changing to output 100% for full battery on OS X.
This commit ensures that `battery_percentage` has the same output
on both Linux and OS X. Thanks @jfmcarreira for finding this!
2016-03-25 10:13:16 -05:00
Joao Carreira
320e864f59 Fix battery plugin
Clean cases and remove spaces and % symbol in one awk command
2016-03-24 16:34:32 +00:00
cornfeedhobo
85e7e408aa added menu and error messages to projects plugin. indentation cleanup to conform to editorconfig. 2016-02-12 09:05:22 -06:00
Nils Winkler
d938d15f9d Merge pull request #398 from ancho/gvm_completion
added sdk(man) completion and plugin
2016-02-04 13:03:25 +01:00
cs-networks
98eb5495fe osx_terminal_exit_code_fix
The update_terminal_cmd is interfering with the $? variable. Somehow it
is always 0.

```
caesium@Mac:~/Documents/projects/git/bash-it 0 >export
PROMPT_COMMAND="update_terminal_cwd;set_prompt"
caesium@Mac:~/Documents/projects/git/bash-it 0 >false
caesium@Mac:~/Documents/projects/git/bash-it 0 >true
caesium@Mac:~/Documents/projects/git/bash-it 0 >export
PROMPT_COMMAND="set_prompt;update_terminal_cwd"
caesium@Mac:~/Documents/projects/git/bash-it 0 >false
caesium@Mac:~/Documents/projects/git/bash-it 1 >true
caesium@Mac:~/Documents/projects/git/bash-it 0 >
```

After the fix it is working properly.
2016-01-07 20:37:01 +01:00
codefalling
c08c1c095a add plugin:percol 2016-01-05 23:34:10 +08:00
Kyle VanderBeek
1dcfecbc17 Enable discovery and use of nvm installed via homebrew.
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/nvm.rb#L27
2015-12-23 12:49:57 -08:00
Bill Moritz
d8ce333ae7 Add Support for different docker-machine VM names
Add the variable BASH_IT_DOCKER_MACHINE to set a name other than 'dev' as
Virtual Machine name.
2015-12-06 09:55:19 -05:00
Nils Winkler
ef7bfd1bdd Merge pull request #614 from oxnz/master
add multi formats
2015-11-25 08:49:46 +01:00
oxnz
cab40e02b9 improve extract function to support a short help message as well as some more formats support 2015-11-21 22:59:40 +08:00
Nils Winkler
7056358271 Removed nvm script, replaced with loader and deprecation warning.
If you want to keep using nvm, install the latest version from
https://github.com/creationix/nvm.git
2015-11-17 12:45:20 +00:00
Frank Becker
e2a596b708 renamed gvmtool to sdkman 2015-11-16 16:13:32 +01:00
Manoj
5b87b2db0e Using pathmunge in jenv plugin 2015-11-03 12:10:02 +05:30
Manoj
7a00fe981c Add jenv plugin 2015-11-02 17:06:18 +05:30
Stéphane Adjemian (Charybdis)
35902d00d9 Fixed pygmentize in less.
Was not working correctly with file extensions unknown to
pygmenties. Added the -g option to pygmentize command.
2015-10-31 00:53:41 +01:00
Nils Winkler
f0a8d0d6d3 Merge pull request #594 from nwinkler/rename-plugin
Renamed boot2docker plugin file
2015-10-21 09:26:28 +02:00
Nils Winkler
ad537b4c05 Renamed file 2015-10-21 09:25:52 +02:00
Nils Winkler
f3542fcabe Added Visual Studio Code plugin
Only required on Mac OS X. More details here:

https://code.visualstudio.com/Docs/editor/setup
2015-10-21 09:24:17 +02:00
Nils Winkler
90eaa35bed Merge pull request #590 from trinitronx/add-mankier-explain-function
Adding mankier.com explain() function to explain other commands
2015-10-21 09:14:37 +02:00
James Cuzella
34e9878943 explain: remove comments, add about, example, group, param metadata to explain() 2015-10-16 10:16:36 -06:00
Nils Winkler
36caf70f8d Renamed alias-completion file to match naming conventions 2015-10-15 11:28:58 +02:00
James Cuzella
2d60d6ccd4 Adding mankier.com explain() function to explain other commands 2015-10-14 10:30:29 -06:00
Nils Winkler
cb4fbd3983 Merge pull request #585 from ljfranklin/PR-docker-machine-source-env
Source docker-machine environment variables rather than hardcoding
2015-10-09 08:32:33 +02:00
Shash Reddy
e704bd72f3 Check whether docker-machine dev is running before configuring env variables
Signed-off-by: Lyle Franklin <lfranklin@pivotal.io>
2015-10-08 11:11:12 -07:00
Nils Winkler
578e6bbe31 Merge pull request #555 from mimoralea/master
Add mkcd and del functions
2015-10-08 08:09:46 +02:00