Commit Graph

163 Commits (e43f516439e2c2d4424b4d5009037f37ac332a57)

Author SHA1 Message Date
Travis Swicegood e43f516439 Add a few new docker aliases 2014-09-04 13:10:35 -07:00
Faro 1560d7b9bb adding functions to rename os x terminal tab and window titles 2014-08-22 11:26:57 +02:00
Travis Swicegood e0c48b1637 Merge pull request #315 from Jeraimee/master
Updating function declarations to avoid parse errors in some bash versions
2014-07-30 08:42:03 -05:00
Jeraimee Hughes f82e66140d Updating function declarations to avoid parse errors in some bash versions. 2014-07-29 08:52:23 -04:00
Travis Swicegood 6f79c9d760 Add docker-enter 2014-07-18 17:04:41 -05:00
Travis Swicegood ccf79ffb4b Add a Docker plugin
This just sets the `DOCKER_HOST` for OS X users so we don't have to keep
setting it all over the place.
2014-07-04 13:30:54 -05:00
Manoj 073d75532e Add pyenv plugin 2014-06-15 03:17:50 +05:30
Travis Swicegood ee793d4cce Add a pyedit command thanks to @srossross 2014-03-26 10:03:50 -05:00
Travis Swicegood 3b6180a726 Merge pull request #254 from aramprice/master
Make chruby plugins conform to naming convention
2014-01-13 08:27:22 -08:00
Travis Swicegood adfd72a3ad Fix so this works with the all themes (oops) 2014-01-09 10:52:14 -06:00
aram price 5ef3f817fe Make chruby plugins conform to naming convention 2014-01-02 11:27:14 -08:00
Travis Swicegood aacc294a5e Merge pull request #247 from jimmynotjim/make-iso
Added plugin to create iso from current dir
2013-12-20 12:31:26 -08:00
jimmynotjim 55a37ad4c9 Fixed example arguments and added param arguments 2013-12-19 10:21:55 -05:00
Nils Winkler 964850d6da Subtle change: Added a space in front of the command that's run in the
new tab. If you use `export HISTIGNORE=' *'` in your shell, this will
ensure that commands starting with a space will not be included in the
history. Since the command sent to the new tab by the `tab` command
probably shouldn't show up in the history, I added a leading space
character.
2013-12-10 17:05:28 +01:00
jimmynotjim d5bfb7fcb4 Added plugin to create iso from current dir
Includes options for custom name, dest dir and source dir
2013-11-29 14:25:47 -05:00
jimmynotjim 3aa33ea18a Removed due to Git handling this automatically
See this discussion https://github.com/revans/bash-it/pull/242/files#r7964126
2013-11-27 13:07:47 -05:00
jimmynotjim 5d22da957b Added new aliases and plugins for git 2013-11-27 11:26:50 -05:00
aram price b48a0f2f65 Add chruby and chruby-auto plugins
* chruby.bash loads chruby
  * chruby-auto.bash loads chruby and enables auto-switching
  * add chruby_version_prompt() function for displaying ruby version
  * inspired by https://gist.github.com/rssvihla/6153455
2013-11-03 18:08:03 -08:00
Travis Swicegood 2813930e04 Add a wovenv to match mkvenv 2012-11-16 11:00:46 -06:00
Travis Swicegood afe700fc0c Remove --no-site-packages as that is now the default behavior 2012-11-16 11:00:30 -06:00
Travis Swicegood 5c0e1437d4 Make sure that the npm prefix is in PATH 2012-09-20 15:36:54 -05:00
Travis Swicegood e9f00c9af9 Add code to handle node_modules path 2012-09-19 21:53:27 -05:00
Erich Smith e1da40a475 Merge pull request #129 from erichs/todo.sh
add todo.txt-cli as a plugin
2012-07-10 10:15:31 -07:00
Nils Winkler 998c09745a Added Java plugin. 2012-05-21 11:50:01 +02:00
Erich Smith 339cfe9733 conditionally define t()
if user has enabled the todo plugin, skip defining the 'one thing'
todo function t().
2012-05-17 21:43:57 -04:00
Erich Smith dd9fb1009b conditionally define t()
if user has installed the todo plugin, forego defining the 'one thing'
todo function t().
2012-05-17 21:40:08 -04:00
Erich Smith 758c4f3328 test existence, not symlink
it isn't safe to assume that symlinks created in the enabled/* dirs will
be symlinks later...

some users use tools like Dropbox to sync their files across systems,
and these may transform symlinks into regular files.  explicitly
checking for symlinks with tests like [ -h $file ] will break on these
systems.  these tests have been replaced with [ -e $file ] instead.
2012-05-16 13:00:22 -04:00
Erich Smith a825c5f16f plugins-help is much faster
this replaces the naive implementation that called glossary() on each
group, and is an order of magnitude faster.

fix grouping in javascript.plugin.bash
2012-05-15 14:29:06 -04:00
Erich Smith 08e439c4f0 update plugin management 2012-05-13 22:13:54 -04:00
Erich Smith 8051a8520e disable z() if fasd is enabled
loading fasd clobbers z(), and results in a cryptic syntax error
message, since 'z' is already an alias when z.plugin.bash is being
sourced.

this conditional detects this situation and returns early.
2012-05-13 22:13:54 -04:00
Erich Smith 55e77deac1 standardize plugins, update metadata
add about-plugin metadata
chmod -x plugins
cleanup filenames to standardize on x.plugin.bash format
only plugin files intended to be executable from the command line should
contain a shebang line, and should be a+x.
2012-05-13 22:13:54 -04:00
Erich Smith 254d4459e2 basic plugin management
move plugin management functions into 'lib' group in helpers.bash
2012-05-13 22:13:54 -04:00
Erich Smith 205027491a Merge branch 'master' into plugin_metadata 2012-05-11 14:08:33 -04:00
Erich Smith 57283d72de respect profile overrides
overrides may now be specified for any of these defaults:
TODO_DIR=$BASH_IT/custom    # change if you want todo.txt and friends
                            # to live somewhere else

TODOTXT_DEFAULT_ACTION=ls   # change if you want a different action,
                            # like 'lsp' or 'lsprj'

TODO_SRC_DIR=
$BASH_IT/plugins/available/todo  # for custom installs with plugins
2012-05-10 20:39:18 -04:00
Erich Smith 00cab2fd6a Merge branch 'master' into todo.sh 2012-05-10 20:33:17 -04:00
Nils Winkler f3d4469568 Fixed reload by expanding environment variable before defining the alias. 2012-05-10 16:24:18 +02:00
Nils Winkler ff99e1f8d4 Fixed BASH_IT path in fasd configuration to use environment variable instead of fixed path. 2012-05-10 15:57:47 +02:00
Erich Smith f5badb3c28 add todo.txt-cli as a plugin
Since it is referenced in the default .bash_profile and in aliases and
themes, why not make it an official plugin?

This creates a 'todo/' directory in /plugins/available, and installs
todo.sh and friends there.  Tab completion and the 't' alias should work
out of the box.

Note: it was also necessary to modify .gitignore to ignore the files
todo.sh generates in custom/.
2012-05-09 19:37:37 -04:00
Erich Smith 3f8fe6157c update plugin documentation 2012-05-09 09:27:10 -04:00
Erich Smith 248eb30e00 plugin-specific metadata
cite about-plugin metadata.  This could be retrieved later, say by an
install script or other helper function, with:

cat ~/.bash_it/plugins/enabled/base.plugin.bash | metafor about-plugin

In this way, summaries of each plugin may be provided to give newcomers
(like me!) an overview.

also, rewrote plugins-help(), which didn't work very well on my system.
It now dynamically queries composure metadata.
2012-05-08 23:40:24 -04:00
Travis Swicegood 89263728f2 Merge remote-tracking branch 'erichs/fasd' 2012-05-07 18:21:33 -05:00
Travis Swicegood 8bac035322 Merge remote-tracking branch 'erichs/fix_pull_121' 2012-05-07 18:19:07 -05:00
Mike Thornton bae8a1cd6f Make it so rbenv doesn't try to run if it's not installed 2012-05-07 15:48:38 -05:00
Erich Smith b9e985b893 update alias directory 2012-05-07 12:57:23 -04:00
Erich Smith 3e76d67134 fasd 0.5.4 plugin
The [fasd](https://github.com/clvv/fasd) project replaces the current
z() functionality, and generalizes it for all files and directories.

It provides a 'z' alias which works like z() does today, but faster, as
well as 'f' for selecting files, and 'd' for selecting directories, all
based on 'frecency' with Bayesian inference calculations. It is also
trivial to set up a 'v' alias to edit frecently used files.

Seriously, two points just for using Bayes' theorem.

I've sourced this as a plugin, and made a minor modification to @clvv's
0.5.4 file to bootstrap the initialization process without installing
fasd outside of Bash_it, or modifying the PATH.

This doesn't fully install fasd on a system (for instance, the man page
is not installed).

Using this as a plugin will clobber the z plugin.

This also installs a PROMPT_COMMAND hook. I don't have a complex setup,
but it is possible this may not play nice with other PROMPT_COMMAND
hooks if they are set. It seems to work well on my box.

As an aside, it appears that z.bash is out-of-date compared with @rupa's
latest code.
2012-05-07 12:56:08 -04:00
Erich Smith 5d32cf9a02 quote examples
prevent bash expansion and parsing of example code
2012-05-07 12:51:10 -04:00
Travis Swicegood 4c3f21ae0b add a little docblock explaining about it 2012-04-30 11:09:46 -05:00
Travis Swicegood 576fcb6c6f Ignore files that begin with an underscore (bandaid for #108) 2012-04-30 11:07:15 -05:00
Erich Smith 2086a053df fix typo 2012-04-28 10:40:16 -04:00
Erich Smith e3011c5ead more portable pass function 2012-04-28 10:35:01 -04:00