Commit Graph

1074 Commits (6799b151d4b0bae7fd41611cbe7d3c9b06032e45)

Author SHA1 Message Date
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 670e7b1dcc Merge pull request #558 from nwinkler/alias-completion
Added alias-completion plugin
2015-09-04 14:43:42 +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
Travis Swicegood 1bbf8204b6 Add bundler completion from @mernen 2015-09-01 10:47:16 -05:00
Nils Winkler ad1b059d0d Merge pull request #557 from bezhermoso/vim-indicator
Indicator if running bash in vim
2015-09-01 08:48:07 +02:00
Bez Hermoso 77a891d8c6 Check VIMRUNTIME instead 2015-08-31 16:36:07 -07:00
Bez Hermoso 29861812dd Vim indicator for powerline-multiline theme 2015-08-31 12:07:39 -07:00
Bez Hermoso e6dc31b35d Indicator if running bash in vim 2015-08-31 10:22:28 -07:00
Nils Winkler 306168b605 Merge pull request #556 from nwinkler/base-osx
Moved some functions
2015-08-31 08:54:42 +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
Nils Winkler 2cac4380b9 Merge pull request #545 from goromlagche/add-time-to-bobby
adding datetime and battery percentage to theme 'bobby'
2015-08-27 15:56:14 +02:00
goromlagche f7877a1ef8 prefixing THEME to BATTERY_CHECK and CLOCK_CHECK 2015-08-27 19:00:18 +05:30
Nils Winkler 33307c7360 Merge pull request #550 from simonfiddaman/master
Skip ssh hashed hosts
2015-08-27 08:54:53 +02:00
Nils Winkler 18e0b16b05 Merge pull request #551 from songxinqiang/master
a new theme:axin,based on 'sexy'
2015-08-27 08:14:19 +02:00
Nils Winkler 2b483010d2 Merge pull request #415 from websi/capistrano_v3
Add the compatibility for capistrano gem version 3
2015-08-27 08:13:40 +02:00
宋信强 93a53676e8 Merge branch 'master' of github.com:Bash-it/bash-it 2015-08-26 09:36:15 +08:00
Nils Winkler cd3bab0071 Merge pull request #553 from nwinkler/plugin-osx-timemachine
Added plugin for OS X Time Machine
2015-08-25 10:07:20 +02: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
宋信强 5d6a68b201 Delete the execss function, modify the note and the shown style 2015-08-24 09:10:09 +08:00
宋信强 bdf1ede7ef a new theme:axin,based on 'sexy' 2015-08-21 17:23:12 +08:00
Simon Fiddaman 6c82269121 Skip ssh hashed hosts 2015-08-20 17:37:46 +02:00
goromlagche e525ea1fbe clock_check added, datetime added instaed of clock, also battery_percentage added 2015-08-12 22:59:18 +05:30
Nils Winkler c00e22d6bf Merge pull request #547 from keymon/bugfix/546_infite_loop_ps4_with_command
Fix #546: infinite loop when $PS4 calls external command
2015-08-12 15:57:42 +02:00
Hector Rivas Gandara 2360790ee3 Fix infinite loop when $PS4 calls external command
When using `set -x` with a `$PS4` variable which calls a external
command (e.g. `PS4='+ $(true)'`) the color functions end in a infite
loop.

The solution is `shift` the arguments unconditionally in the color
funtions.

This fixes #546
2015-08-12 12:00:14 +01:00
goromlagche 39b5d0b042 adding time to bobby 2015-08-12 00:20:50 +05:30
Omer Katz 2541ca965a Merge pull request #543 from nwinkler/install-options-sane
Updated install script
2015-08-11 11:23:06 +03:00
Nils Winkler 63add1f86a Added load_some function again
It can be called by providing the `--interactive` switch to the install
script.
2015-08-06 16:52:37 +02:00
Nils Winkler 237816b782 Updated install script
Removed Jekyll template option - it does not really belong in Bash-it.

Removed the all/some/none options. Most people selected `all` and then
complained about things not working, or error messages being shown. This
was mostly due to missing dependencies.

The installer now uses a 'sane' default - it just enables completion for
the 'bash-it' command and nothing else. At the end of the installation,
it prints a message explaining the ways to see the available plugins and
how to enable them.

Updated readme with install options
2015-08-06 09:51:39 +02:00
Nils Winkler a161455c98 Merge pull request #539 from nwinkler/uninstall
Uninstall script and instructions
2015-08-06 08:48:36 +02:00
Nils Winkler d64201791d Merge pull request #542 from dvergeylen/master
Added 'catt' alias which displays content whatever regular file or folder
2015-08-05 11:32:27 +02:00
Daniel Vergeylen 0fb33e457e Added 'catt' alias, which displays file content or folder content, according to file type. 2015-08-05 11:09:14 +02:00
Nils Winkler a418c6970c Merge pull request #540 from nwinkler/battery-percentage-powerline
Fixed battery conversion
2015-08-04 11:32:36 +02:00
Nils Winkler 658cfb7d6e Fixed battery conversion
For battery percentages of 08 and 09 percent, the `-le` would fail with
an error ("value too great for base"), since the numbers with leading
zeros are treated as octal numbers when using double brackets.

The solution is to force base 10 for the numbers. More details here:
http://stackoverflow.com/a/24777667/1228454
2015-08-04 11:31:01 +02:00
Nils Winkler 1553a7ad80 Only setting environment variable if not already set 2015-08-04 10:40:00 +02:00
Nils Winkler 2f64aaec6c Added uninstall instructions 2015-08-04 10:34:37 +02:00
Nils Winkler b68472c959 Added first draft of uninstall script 2015-08-04 10:34:25 +02:00
Nils Winkler 3828f6756d Merge pull request #538 from minamarkham/master
New theme, named 'cupcake'
2015-08-03 09:36:43 +02:00
Mina Markham bc7bcf0883 adding cupcake theme 2015-08-03 02:53:35 -04:00
Nils Winkler 1aadb24f38 Merge pull request #529 from ranaamritparth/theme/rana
New Theme
2015-08-02 18:36:41 +02:00
Nils Winkler e32022c8cf Merge pull request #536 from ritola/dulcie-theme-upgrades
Dulcie theme upgrades
2015-08-02 18:31:58 +02:00
Heikki Ritola 436a25ed84 Dulcie theme upgrades
- Colorize prompt
- Support for multiline prompt
- Set tab title (OSC 0) and keep the current directory (OSC 7)
2015-08-02 12:18:35 +03:00
Nils Winkler 766eb1f8c9 Merge pull request #534 from nwinkler/docker-enter
Moved docker-enter function to docker plugin
2015-07-30 14:26:33 +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 6531938ade Merge pull request #533 from nwinkler/less-pretty-cat-check
Fixed error handling in less-pretty-cat plugin
2015-07-28 15:51:43 +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
Nils Winkler 77d82a43d7 Merge pull request #532 from haomingz/plugins-fix
fix pyenv plugins PATH env
2015-07-27 09:08:29 +02:00
Haoming Zhu 6bf011a1f4 fix pyenv plugins PATH env 2015-07-26 12:49:37 +08:00
Nils Winkler 56a3287319 Merge pull request #531 from aashah/patch-1
Update base.theme.bash
2015-07-24 08:57:49 +02:00