Commit Graph

197 Commits (5b87b2db0e830035f978e895433dfd1a65d33530)

Author SHA1 Message Date
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