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
Álvaro Brey
9435a68695
xterm.plugin.bash: reformat to follow bash-it code style
2017-04-26 18:49:56 +02:00
Álvaro Brey
597285cdfd
Support shortened command & dir name in xterm title plugin
...
This allows the user to see only last level of the current path (if dirname is longer than 8 chars),
and only first word of the ongoing command line if it's longer than 8 chars.
2017-04-26 17:11:53 +02:00
Nils Winkler
bb63f6a9a6
Merge pull request #942 from ontherunvaro/short-username
...
Support short username in xterm title plugin
2017-04-25 08:53:42 +02:00
Álvaro Brey
f3d36d7a42
Support short username in xterm title plugin
2017-04-21 12:48:31 +02:00
Stimim
21fd969f40
plugins: autojump: support debian system
...
as title, load autojump.sh in debian system.
2017-04-20 22:22:25 +08:00
Vladimir Rudnyh
1258757fc7
Python errors handling in 'pyedit' command
...
Do now show python warnings (import or syntax) if module name is bad.
2017-03-21 15:01:29 +03:00
Nils Winkler
6de4f3f79b
Merge pull request #909 from dsem/add-docker-cleanup
...
Add plugin and alias for cleaning docker assets
2017-02-16 09:55:36 +01:00
Dylan Semler
20a49e6393
Add plugin and alias for cleaning docker assets
2017-02-15 07:00:42 -05:00
Dylan Semler
d81c35d752
Simplify docker functions
...
Instead of piping the standard output of `docker ps` and `docker images`
through a series of heads, tails, and awks, use the flags available to
the `docker` command to achieve the same goal.
2017-02-15 06:38:26 -05:00
Nils Winkler
4790569671
Fixed percol plugin function syntax
...
Without the `function` keyword, the file did not load when using Bash
v3.x. With the added `function` keyword, the file can be parsed and the
error message about having to install Bash v4 is shown.
Closes #881
2017-01-09 09:14:05 +01:00
Nils Winkler
7e30636b81
Merge pull request #877 from font/edit-mode-emacs-plugin
...
New plugin to enable emacs editing mode
2017-01-03 08:22:20 +01:00
Ivan Font
41eb07cde3
New plugin to enable emacs editing mode
2017-01-02 00:02:26 -08:00
Ivan Font
49e4b0958d
New plugin to enable vi editing mode
2017-01-01 23:57:59 -08:00
Evan McQuinn
da0b610a57
Add a plugin that makes it easier to use the gradle wrapper if a project has one.
2016-12-16 11:26:10 -07:00
Nils Winkler
c43b3fb303
Added docker-archive-content function
2016-12-12 15:22:47 +01:00
MunifTanjim
a0f14898c9
add go plugin
2016-11-19 22:33:11 +06:00
Ira Abramov
2a0700d700
support short hostnames in xterm title
2016-11-06 13:44:49 +02:00
Eduardo Bellido Bellido
d20bcf5882
Closes issue 809
2016-10-26 21:27:52 +02:00
MunifTanjim
b32cb8fee2
fix rbenv plugin according to PR comments
2016-10-10 13:45:34 +06:00
MunifTanjim
48f4292b18
improve plugin for rbenv
2016-10-07 23:10:59 +06:00
Tomas Slusny
5c69d79810
Recognize fasd when sourced
...
According to fasd README, fasd can be also used by sourcing it and not only by including it into path. This patch will ensure that fasd will be properly recognized, even when it is sourced and not included in path.
2016-09-07 10:17:40 +02:00
Nils Winkler
dd218b5113
Added empty check for PROMPT_COMMAND in fasd plugin
...
This should fix the additional issue found in #775 .
2016-08-11 08:16:20 +02:00
Thomas Bouve
3a347083d2
Added quotes and fixed missing du depth value.
2016-08-08 09:53:07 +02:00
Thomas Bouve
c204a43305
OS X fix for usage function.
2016-08-06 21:53:34 +02:00
Nils Winkler
03600e0da1
Added docker-compose plugin
...
Only function so far: docker-compose-fresh, which shuts down a running
docker-compose instance, deletes the containers, and starts up fresh
instances, then tails the container logs.
Converted this from an alias to a function so that a parameter can be
provided for the name of the docker-compose.yaml file name.
2016-07-06 08:24:48 +02:00
Matt Broyles
fbca9c92a5
Added gitignore-reload plugin
2016-06-27 15:02:34 -05:00
Nils Winkler
932a951294
Added missing meta tags for gittowork
...
Also fixed some typos in the function.
2016-06-21 13:18:06 +02:00
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
Miguel Morales
f5d4210ffd
Delete mkcd.plugin.bash
2015-10-07 15:57:19 -05:00
Miguel Morales
f59ab436e4
Delete del.plugin.bash
2015-10-07 15:57:09 -05:00
Lyle Franklin
9c23a15075
Source docker-machine environment variables rather than hardcoding
...
Signed-off-by: Frank Kotsianas <fkotsian@pivotal.io>
2015-10-07 13:56:40 -07:00
Miguel Morales
ca3f1baf80
Add del function to the base plugins
2015-10-07 15:55:38 -05:00
cornfeedhobo
c74378632f
added projects plugin and completion
2015-09-26 18:32:01 -05:00
Lyle Franklin
412bb7fc88
Replace `~` with $HOME in docker-machine plugin
...
The `~` caused docker commands to error with the following:
```
$ docker images
Could not read CA certificate "~/.docker/machine/machines/dev/ca.pem"
```
Switching to $HOME fixes the issue
2015-09-09 09:38:07 -07:00
Lyle Franklin
d751b3da67
Rename docker-machine file to include 'plugin'
...
- We have some automation around enabling plugins which expects the word 'plugin'
2015-09-08 18:03:10 -07:00
Nils Winkler
546f90e368
Fixed reference and typo
2015-09-07 12:46:34 +02:00
Eduardo Bellido Bellido
6799b151d4
Add hub plugin and completion
2015-09-06 19:18:14 +02:00
Eduardo Bellido Bellido
9006e7a59b
Mark gh plugin as deprecated, hub is suggested as replacement
2015-09-06 19:17:20 +02:00
Nils Winkler
53906f1fb6
Added alias-completion plugin
...
This plugin adds completion to aliases, just as with their regular
commands. Example:
* Completion works for `git checkout <TAB>`, which shows available
branches.
* You have an alias like `alias gco="git checkout"`
* The plugin adds support for `gco <TAB>`, which will also show the
available branches.
Reference: http://superuser.com/a/437508/119764
2015-09-04 14:38:49 +02:00
Nils Winkler
74a9f5c411
Moved some functions
...
Some functions were specific to OS X, but were defined in the `base` plugin. I have moved them to the `osx` plugin:
* pman
* pcurl
* pri
As for `pcurl`, the `osx` plugin already had an existing `prevcurl` function, which was doing the same thing. I've aliased `pcurl` to simply call `prevcurl` to avoid breaking existing installations.
As far as I know the `open -fa $PREVIEW` thing only works on OS X, which means that these functions have only worked on OS X anyway.
2015-08-31 08:52:57 +02:00
Miguel Morales
8c05350c8b
Add comments and explanations
2015-08-29 18:47:45 -05:00
Miguel Morales
a887290539
Tidy up blank line
2015-08-29 18:44:08 -05:00
Miguel Morales
2bb8e900ea
Add plugin mv into tmp trash folder that gets clear on reboot (as tmp does)
2015-08-29 18:42:17 -05:00
Miguel Morales
79727c84f4
Add mkdir and cd into directory function
2015-08-29 18:41:18 -05:00
Nils Winkler
03e311028c
Added plugin for OS X Time Machine
...
A set of functions to simplify listing OS X Time Machine backups, and
deleting old ones. Pulled from various script solutions found on Stack
Overflow, adapted to the Bash-it framework.
The functions allow to show which backups can be found on the connected
Time Machine volume. The 'delete' function allows to safely remove all
backups except for the latest one - this can be used to free up space on
the Time Machine volume. The 'delete' function uses functionality of the
OS to safely remove the old backups, no information is lost.
The 'delete' function will only ask for the password once, then keep the credentials.
Source: http://stackoverflow.com/a/30547074/1228454
2015-08-25 10:00:41 +02:00
Nils Winkler
04907a7197
Moved docker-enter function to docker plugin
...
Using the recommended enter approach (exec) instead of the previously
used nsenter.
2015-07-30 14:25:37 +02:00
Nils Winkler
6512be5222
Merge pull request #523 from nwinkler/docker-split
...
Docker plugin --> boot2docker, docker-machine plugins
2015-07-30 14:21:39 +02:00
Nils Winkler
d12d78ddaf
Fixed error handling in less-pretty-cat plugin
...
When pygmentize is not installed, the functions less/cat are not
defined, the native commands will be used instead. Also removed the
error message that was shown when the command was not found.
Using `command -v` instead of `which` to check for the existence of the
executable - this works better as it does not print an error message if
the executable is not found.
2015-07-28 15:50:21 +02:00
Haoming Zhu
6bf011a1f4
fix pyenv plugins PATH env
2015-07-26 12:49:37 +08:00
Nils Winkler
cdfe76620a
Added check for presence of textmate executable
2015-07-20 17:41:55 +02:00
Nils Winkler
4b66fec9da
Merge pull request #471 from ratberryjam/fix-set_xterm_title-for-osx
...
Fix for issue #108 that restores xterm plugin functionality on OS X.
2015-07-20 09:57:19 +02:00
Nils Winkler
90271980fd
Moved boot2docker functionality to its own file. Also added a docker-machine plugin, which sets the same variables for docker-machine.
2015-07-16 13:14:00 +02:00
Nils Winkler
2dd46920eb
Merge pull request #514 from nwinkler/osx-tabs
...
Added check for OS X update_terminal_cwd
2015-06-26 08:17:25 +02:00
Nils Winkler
5d00373359
Added check for OS X update_terminal_cwd
...
This will allow to open new terminal tabs in the same directory as the
current terminal. Uses the fact that plugins are loaded after the
selected theme. Themes often manipulate the $PROMPT_COMMAND variable.
Implementation inspired by the pathmunge function.
2015-06-25 12:26:53 +02:00
Nils Winkler
27c5500873
Updated boot2docker settings
...
Changed port to 2376.
Added cert path and TLS verify.
2015-06-22 07:51:49 +02:00
Nils Winkler
5e61b73a87
Merge pull request #511 from jawshooah/git-subrepo
...
Add git-subrepo plugin
2015-06-18 17:57:27 +02:00
Josh Hagins
51872d7bee
Add git-subrepo plugin
2015-06-18 11:51:51 -04:00
Nils Winkler
cfef7e2f73
Merge pull request #499 from ipoval/master
...
[pathmunge] remove duplicate entry into PATH variable on reload command
2015-06-12 09:35:40 +02:00
Eduardo Bellido Bellido
d4c1ded1cc
Check for AWS credentials file in AWS plugin
2015-06-11 00:26:25 +02:00
Eduardo Bellido Bellido
1e32b49bd7
Merge pull request #501 from edubxb/aws-plugin-completion
...
Added completion to AWS plugin
2015-06-10 22:42:02 +02:00
Nils Winkler
03b796ee60
Merge pull request #476 from mimoralea/mimoralea-pretty-cat-plugin
...
Replace cat with pigmentize to add syntax highlighting if possible defaulting back to cat
2015-06-10 07:28:41 +01:00
Eduardo Bellido Bellido
be25f925c7
Added completion to AWS plugin
2015-06-09 23:16:47 +02:00
Miguel Morales
e143d4f696
Allow for passing arguments to pygmentize
2015-06-09 07:46:32 -05:00
Ivan Povalyukhin
dabf0e8c42
[pathmunge] remove duplicate entry into PATH variable on reload command
2015-06-07 20:08:39 -07:00
Eddie Hurtig
7bbc077990
Check for PTY before attempting to use bind
...
After running a dist upgrade on one of my Ubuntu 14.04 test workstations I started receiving errors after a graphical login. This should also fix remote ssh login problems as seen in http://superuser.com/questions/892658/remote-ssh-commands-bash-bind-warning-line-editing-not-enabled
2015-06-05 17:56:05 -04:00
Antti Ahti
fcbe9aa751
Fix ips command for platforms without ifconfig
2015-06-05 15:40:58 +03:00