Commit Graph

242 Commits (e2d35c710ee60404036a05e5d640cb6b13aadcfa)

Author SHA1 Message Date
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
Eduardo Bellido Bellido 96c82fe460 Merge pull request #474 from edubxb/aws-plugin
Updated AWS plugin
2015-06-03 13:18:27 +02:00
Nils Winkler 603c71736e Merge pull request #493 from ipoval/fix_duplicate_entries_in_path
Fix duplicate entries in path, closes #482 and closes #483
2015-05-31 15:41:04 +02:00
Miguel Morales 2ffed6f52a Change alias to a more intuitive name 2015-05-30 14:17:11 -05:00
Ivan Povalyukhin 575551e42b [pathmunge] fix duplicates in PATH variable for nginx and node plugins 2015-05-30 00:27:05 -07:00
Miguel Morales 567289185a Alias collides with httpie binary
It would be nice to still have this alias but not colliding with the awesome httpie tool:

https://github.com/jakubroztocil/httpie
2015-05-24 18:11:14 -05:00
Miguel Morales 6821b6c0dc Add less and remove hard exit 2015-05-24 18:04:42 -05:00
Eduardo Bellido Bellido 1172973d89 Fixed regex in __awskeys_list function 2015-05-20 20:49:36 +02:00
Eduardo Bellido Bellido 172c6a0aea Renamed remove option to unset 2015-05-13 23:11:04 +02:00
Eduardo Bellido Bellido 98f5be98dc Now, really fixed (and tested) the export option in Mac 2015-05-13 23:09:03 +02:00
Miguel Morales 6b1789e385 Add cat function documentation 2015-05-12 16:36:07 -05:00
Miguel Morales 3f98e953cd Fix typo 2015-05-12 16:26:18 -05:00
Miguel Morales af2f0304cb Add proper exit code 2015-05-12 15:57:39 -05:00
Miguel Morales 0bdcf196aa Add pretty cat plugin for cat with syntax highlighting 2015-05-12 11:30:49 -05:00
Eduardo Bellido Bellido 9d7aa3b882 Added remove option 2015-05-11 00:02:27 +02:00
Eduardo Bellido Bellido ab08ca7d16 Minor changes and updated help messages 2015-05-11 00:02:07 +02:00
Eduardo Bellido Bellido ca52f5ce2f Fixed export option to work on Mac 2015-05-11 00:01:36 +02:00
James Ratcliffe 66fd6411a0 Fix for issue #108 that restores xterm plugin functionality on OS X. 2015-05-10 15:17:45 -04:00
Eduardo Bellido Bellido 767a7a63ca Added AWS plugin
- awskeys, helper function for credentials profiles
2015-05-09 01:33:30 +02:00
Nils Winkler 2d13b3294a Fixed conversion when the battery percentage is in the single digits.
The previous version was printing an error when the battery percentage
was in the single digits, e.g. "7.04%". The code cuts returns the first
two digits, which in the case of "7.04%" are "7.". Any code that tries
to use that, e.g. the powerline-multiline theme will fail with an error.

This change corrects that by zero padding single digits, i.e. "07.04%"
instead of "7.04%".
2015-05-05 11:30:25 +02:00
Ivan Povalyukhin f1de827622 [tests] added test for base plugin mkcd(); make mkcd() safe for directory names starting with a dash 2015-05-03 18:11:18 -07:00
Benjamin Brombach 4510c9ee63 fixes #343 by surrounding $HOME (which can have spaces) with quotations marks 2015-04-29 14:56:46 +02:00
Ivan Povalyukhin f420560986 make buf() to respect file attributes on file backup 2015-04-11 15:51:26 -07:00
Nils Winkler 492304dee5 Added proxy plugin. 2015-04-01 13:23:00 +02:00
Nils Winkler 25ec6ee6f3 Merge pull request #442 from ipoval/test_some_functions_in_base_plugin
start with tests for base.plugin.bash
2015-03-30 13:24:19 +02:00
Nils Winkler 98437efb15 Moved nginx settings to plugin.
These settings shouldn't be in the profile template, as they only make sense when used with nginx.
If you're using nginx, you can enable the nginx plugin.
2015-03-30 11:13:01 +00:00
Ivan Povalyukhin 10ea42dc75 whitespace fixes in base.plugin.bash 2015-03-29 14:02:31 -07:00
Ivan Povalyukhin b584d4304d [start with tests] minor space fix in the codebase 2015-03-28 18:54:37 -07:00
Nils Winkler 800a5f9dbe Merge pull request #434 from ipoval/fix_path_to_commands_installed_with_user_install_gems
fix path to commands installed by gem install --user-install
2015-03-26 19:23:06 +01:00
Nils Winkler da07182910 Merge pull request #433 from ipoval/add_argument_presence_check_for_dirs_plugin_functions
add argument presence check for functions in dirs plugin to bad usage
2015-03-26 19:21:49 +01:00
Ivan Povalyukhin 0b300ccb86 add argument presence check for functions in dirs plugin to bad usage 2015-03-26 09:16:00 -07:00
Ivan Povalyukhin 0dfd477978 fix path to commands installed by gem install --user-install 2015-03-26 09:00:20 -07:00
Ivan Povalyukhin fc77a8ce0f fix textmate path on some platforms 2015-03-26 08:50:34 -07:00
Nils Winkler fedb24e60b Removed duplicate vagrant complation
The vagrant.plugin.bash file only defined a completion function, nothing
more. The vagrant.completion.bash file has a more recent completion
function for vagrant. We don't need both, and the completion in the
plugin file was in the wrong location in the first place.
2015-03-20 07:47:43 +01:00
Eduardo Bellido Bellido 42aa39b235 New funcion "ac_adapter_connected" in battery plugin 2015-02-04 23:05:03 +01:00
Kevin S. Clarke ef0f7ebc42 Updated undescores to dashes and added new alias 2015-01-27 15:20:21 -05:00
Kevin S. Clarke ed79936529 Added Docker aliases and functions 2015-01-22 10:23:00 -05:00
Sam Morrison 4ce1f6f771 rename local variable passgen back to pass 2015-01-20 18:46:44 +09:00
Sam Morrison bfe25807a7 using bash-it boolean check convention 2015-01-19 13:05:46 +09:00
Sam Morrison f1f250f7b8 corrected passgen example text and default 2015-01-19 12:28:35 +09:00
Sam Morrison 5963249c0a Rename function pass to passgen. Define alias pass if pass command (password store) is not installed or BASH_IT_LEGACY_PASS is true. 2015-01-19 12:15:26 +09:00
Frank Becker 5d0ba9550f rename gvm completion and plugin to gvmtool to avoid confusion with go version manager 2015-01-12 10:27:38 +01:00
Frank Becker 16933b7d4f added gvm completion and plugin 2015-01-10 14:26:51 +01:00
Omer Katz abb0167ffa Revert "Added pyenv-virtualenv plugin" 2014-12-14 09:52:27 +02:00
Omer Katz d736133f57 Merge pull request #341 from lucasnad27/master
Added pyenv-virtualenv plugin
2014-12-14 09:44:54 +02:00
oxnz c3c40e506b fix bugs caused by unquoted variable(s); remove unnecessary grep in ips func 2014-12-08 00:32:53 +08:00
Eddie A Tejeda 4899c54ba7 create postgres helper functions for bash_it 2014-11-24 00:56:03 -05:00
Peter Daly-Dickson 61e52883f7 Moved arrow-keys-search-history from lib to available plugins 2014-11-07 13:50:34 +00:00
Nils Winkler 44e1ae0002 Fixed script execution to always use the frontmost window, instead of window 1.
If you had multiple terminal windows open, there was a chance that the command was sent to another window (the one with index 1). Using index 0 will execute it in the currently visible window.
2014-11-05 08:18:58 +01:00
Nils Winkler f6a3a7f873 Merge pull request #349 from nwinkler/gifify
Added the gifify function.
2014-10-30 14:18:42 +01:00
Omer Katz b76eb1ea14 Merge pull request #346 from thedrow/feature/pipsi-plugin
Added the pipsi plugin
2014-10-28 11:49:44 +02:00
Omer Katz 92e6a22636 Merge pull request #347 from thedrow/feature/gh-plugin
Added the gh plugin
2014-10-28 11:49:34 +02:00
luke 3a943e5813 Skip workon if not in root directory 2014-10-27 10:31:19 -07:00
Omer Katz cbd68dbf63 Added fzf plugin. 2014-10-27 17:39:29 +02:00
Nils Winkler 168a1fad68 Added the gifify function.
This allows to convert a .mov file into an animated GIF file. Based on
these resources:
* https://gist.github.com/SlexAxton/4989674
* https://gist.github.com/paulirish/b6cf161009af0708315c
2014-10-23 11:13:59 +02:00
Omer Katz 126e81a943 Added the gh plugin. 2014-10-17 17:18:19 +03:00
Omer Katz 27e2b6ffb7 Added the pipsi plugin. 2014-10-17 16:59:19 +03:00