Commit Graph

326 Commits

Author SHA1 Message Date
Justin Hileman
dfff6fa679 [split] Move brew plugin to oh-my-fish/plugin-brew
https://github.com/oh-my-fish/plugin-brew
2015-05-31 08:30:48 -07:00
Justin Hileman
1963af4cb0 [split] Move balias plugin to oh-my-fish/plugin-balias
https://github.com/oh-my-fish/plugin-balias
2015-05-31 08:30:48 -07:00
Justin Hileman
b2549c2005 [split] Move bak plugin to oh-my-fish/plugin-bak
https://github.com/oh-my-fish/plugin-bak
2015-05-31 08:30:48 -07:00
Justin Hileman
a90b48144c [split] Move archlinux plugin to oh-my-fish/plugin-archlinux
https://github.com/oh-my-fish/plugin-archlinux
2015-05-31 08:30:48 -07:00
Justin Hileman
9e1c281973 [split] Move android-sdk plugin to oh-my-fish/plugin-android-sdk
https://github.com/oh-my-fish/plugin-android-sdk
2015-05-31 08:30:48 -07:00
Bruno Pinto
d3b4007594 handling failures on git clone 2015-05-31 14:34:31 +01:00
Bruno Pinto
bcd032de8e using events for easier verbosity handling 2015-05-31 14:11:12 +01:00
Bruno Pinto
2930c81228 omf list function 2015-05-31 14:06:46 +01:00
Bruno Pinto
46f0a3f981 move fish functions to omf plugin 2015-05-31 13:13:23 +01:00
Michel Belleville
fa253c22e9 FIxing a problem caused by the strange "command command -v rbenv"
Some systems don't have a ```command``` command ; testing for it before trying to execute it is better form.
2015-05-27 15:25:21 +02:00
Michel Belleville
e77c6cd77a FIxing a problem caused by the strange "command command -v rbenv" command 2015-05-27 15:25:21 +02:00
Joseph
474ce4cd7a Modify README.md
Typo fixed.
2015-05-06 13:05:31 +02:00
Kelvin Smith
c501d0f2c6 Add emacs plugin (even more updated)
Incorporate changes after code review of #408
2015-04-01 10:23:00 +05:30
Kelvin Smith
55a2e6d003 Add emacs plugin (updated)
Updated in response to comments from @bucaran

Port of oh-my-zsh emacs plugin.
Includes a function to kill emacs from command line once
a daemon has started.

More information included in plugins/emacs/README.md.

See reference plugin here:
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/emacs
2015-04-01 10:22:44 +05:30
Denny Trebbin
6ea0a84c56 fix link to plugin repo 2015-03-22 05:47:55 +01:00
Jorge
1c5cae225e Fix failing balias tests. 2015-03-18 08:53:36 +09:00
Jorge
34cd7dc10e Do not run empty ta's test stub. 2015-03-18 08:53:14 +09:00
Jorge
a17837b7f3 Add test stub for ta plugin. 2015-03-18 08:49:35 +09:00
Jorge Bucaran
c6bc4fdcd8 ta-to-done 📒 2015-03-18 08:18:46 +09:00
Dave Yarwood
14902584f5 fix for sudo command aliases 2015-03-01 09:20:42 -05:00
Dave Yarwood
849fcbecc8 add fish-spec 2015-03-01 01:13:48 -05:00
Dave Yarwood
5bebbc641c use older expr syntax for backwards compatibility with the expr that comes with OSX 2015-02-28 14:10:31 -05:00
Justin Hileman
dc00557f49 Allow adding bundler plugin execs in local config.
set bundler_plugin_execs jekyll mustache
2015-02-24 20:34:06 -08:00
Jorge
8b5777c1f5 fix basename bug on linux 2015-02-25 13:00:11 +09:00
Jorge Bucaran
e38465768f try plugin: quick theme switcher 2015-02-19 19:56:12 -02:00
Jorge Bucaran
681fb07fec fix getopts: handle -h --help bug fish-shell#746 2015-02-12 00:20:56 +09:00
Jorge Bucaran
89a4d811f0 getopts: add multiline option string test 2015-02-11 22:39:25 +09:00
Jorge Bucaran
0715e56026 getopts: handle multiline option strings 2015-02-11 22:39:25 +09:00
Jorge Bucaran
935b2d5aa0 Change tiny declared globals to local scope. 2015-02-11 00:49:31 +09:00
Justin Hileman
edeecff2df Allow overriding default iTerm session profile.
iTerm2 nightly has an improved scripting bridge that exposes sessions, but until that ships, we'll have to use a hardcoded default and let users override.
2015-02-09 11:53:45 -08:00
Justin Hileman
c817bfccfb Fix "missing argument" error when calling tab without args 2015-02-09 11:34:48 -08:00
Justin Hileman
aec321be32 Add tab plugin.
This is a port of a bash function I wrote almost five years ago:

  https://gist.github.com/bobthecow/757788

The fish version is better though ;)

I only have OS X with iTerm and Terminal to test on, but it should be possible to add support for other terminals on other OS. Send a pull request!
2015-02-09 07:05:49 -08:00
Jorge Bucaran
d1e5c07ad9 Add tiny to plugins README 2015-02-08 20:19:46 +09:00
Jorge Bucaran
a63029e9b4 add new plugin: tiny
tap into github's git.io URL shortener
 e.g., tiny -u username -r repo -> http://git.io/be1iX
2015-02-08 20:04:46 +09:00
Felipe Rodrigues
d8fb61b99c Fixing the RVM is not a function, selecting rubies with 'rvm use ...'will not work. 2015-02-05 10:25:23 -05:00
unbalancedparentheses
12c07f15e3 added pbcopy plugin 2015-02-03 12:38:55 +00:00
Jorge Bucaran
7057181db5 Rename .markdown to .md; add links to plugins and fix typos. 2015-02-01 13:50:48 +09:00
Jorge Bucaran
def99add90 Update plugins README with information about new plugins: msg, getopts, fish-spec. 2015-02-01 13:50:48 +09:00
Jorge Bucaran
6f23ccdee8 Add fish-spec plugin README. 2015-02-01 13:50:48 +09:00
Jorge Bucaran
b792d5aeed Add getopts plugin README. 2015-02-01 13:50:47 +09:00
Daniele Sluijters
f4faa2e812 Fix some issues with the usage of RBENV_ROOT.
`RBENV_ROOT` can be used to relocate where rbenv ends up storing the shims
and versions of Ruby it installs. Because of this split `RBENV_ROOT`
cannot be used to reliably construct a path to the rbenv binary itself.

Instead we now rely on `$RBENV_BIN_ROOT` pointing to the `bin/` directory
containing the rbenv binary/script.

If `$RBENV_BIN_ROOT` is not set we search `$PATH` first and then the
user's home directory making sure to prepend the necessary directories to
our `$PATH` depending on where we find rbenv.

Lastly we prepend to our `$PATH` the location rbenv's `shims/` so that we
can find the shims rbenv generates for us.
2015-02-01 02:41:49 -02:00
Bruno Pinto
8521c2124a removing deprecated autojump plugin 2015-01-29 01:20:41 -02:00
Jorge Bucaran
d7366e9466 seq call in getopts should specify negative step 2015-01-24 06:57:51 +09:00
Jorge Bucaran
f397152128 fish getopts plugin 2015-01-24 01:17:01 +09:00
Bruno Pinto
99ea3a6989 simplifying expect tests 2015-01-20 22:18:20 -02:00
Bruno Pinto
b825216053 removing flaky bak tests 2015-01-20 22:02:03 -02:00
Felix Sonntag
39f54c2805 osx plugin: Updated description implementation, improved argument checking 2015-01-20 01:18:28 +01:00
Felix Sonntag
d4acc8148a osx plugin: added descriptions, split up files, minor changes 2015-01-20 01:18:28 +01:00
Felix Sonntag
98a8283511 added osx plugin 2015-01-20 01:18:28 +01:00
Bruno Pinto
80ed2cf0f0 attempt to decrease bak flakiness 2015-01-19 13:26:33 -02:00
Bruno Pinto
fcc15fc16b allow debugging messages to be echoed inside a test 2015-01-17 18:07:49 -02:00
Bruno Pinto
5c81cfbffd more tests for the fish-spec suite 2015-01-17 13:47:50 -02:00
Bruno Pinto
5e2f42c3b4 Closes #322: rename to-(not-)contain to to-(not-)contain-all 2015-01-17 13:32:19 -02:00
Bruno Pinto
9a7292ac9d fail tests when using an invalid comparison 2015-01-17 13:32:19 -02:00
Bruno Pinto
4b8b4b91bf improves text of tests 2015-01-17 13:02:28 -02:00
Bruno Pinto
a90680fd24 enabling spec.spec.fish suite 2015-01-17 03:03:40 -02:00
Jorge Bucaran
3021402525 ⌁ Update Fish-Spec ⌁
+ Add fish eval fix See #fish-shell/pull/1892
+ New and improved output system with colors, etc.
+ Support for multiple non-nested describe blocks.
+ Remove spec.log and favor `msg` plugin and standard echo.
+ `spec.eval` no longer evaluates multiple functions, acting now as a simplified
  router between the view `spec.view` and the controller `spec.run`.
+ Add new `spec.view` to act as a hub for all test output.
+ Add report with passed/failed tests to `spec.view`
+ Now test descriptions are used directly from the function name. Description
  fields are now optional.
2015-01-17 13:46:44 +09:00
Tobias Johansson
60b17c9c70 peco_select_history can take initial query 2015-01-16 09:01:28 +01:00
Bruno Pinto
55b6a97b9e expect --to-be-false tests 2015-01-14 22:56:49 -02:00
Bruno Pinto
cb3ce0317a expect --to-be-true tests 2015-01-14 22:55:12 -02:00
Bruno Pinto
68b8546ce8 expect --to-not-contain tests and fix 2015-01-14 22:47:28 -02:00
Bruno Pinto
ee23d58951 expect --to-contain tests 2015-01-14 22:16:14 -02:00
Bruno Pinto
4b93c37959 expect --to-equal tests 2015-01-14 21:56:46 -02:00
Bruno Pinto
04d61303a8 fix test assertion 2015-01-14 09:14:45 -02:00
Bruno Pinto
8bf09e807e Fixes bak assertions 2015-01-14 09:11:46 -02:00
Bruno Pinto
f5654b0ed4 converting bak plugin tests to fish-spec 2015-01-14 00:00:28 -02:00
Bruno Pinto
081f3f5b25 allow --to-contain to receive an array, and check each item individually 2015-01-13 21:41:17 -02:00
Bruno Pinto
bce3fff175 --to-be-false and --to-be-true expectations 2015-01-13 21:22:29 -02:00
Jorge Bucaran
125f8d43c8 Subsequent tests should run if one test fails. 2015-01-13 19:16:48 -02:00
Jorge Bucaran
63fd25dacb ❯❯❯ Complete overhaul of brand new Oh-My-Fish test framework.
+ Add documentation and examples.
+ Add new functions to interact with the framework:
  + spec.eval - eval a function by name and echo its description field
  + spec.functions - prints functions currently in scope that match the key glob
  + spec.log - log a message / test result
  + spec.run - run suite of tests
+ Rename list.erase to erase.
2015-01-14 02:22:07 +09:00
Bruno Pinto
64ea3d8002 list.erase test 2015-01-10 15:37:19 -02:00
Bruno Pinto
e0bb27831d naiive to_not_include implementation 2015-01-10 15:36:57 -02:00
Jorge Bucaran
235bcf783e Rename array.delete.fish file to list.erase.fish 2015-01-10 15:16:09 -02:00
Jorge Bucaran
29d117e7ce + Rename array.delete to list.erase to better suit Fish terminology.
+ Extend to support any number of items and/or lists.
+ Add --from option.
2015-01-10 15:16:09 -02:00
Bruno Pinto
f34f114018 testing plugin load from custom folder 2015-01-10 15:09:09 -02:00
Bruno Pinto
75ba7639a9 +bucaran array.delete 2015-01-10 12:19:38 -02:00
Bruno Pinto
7c9d660f2c tests using fish-spec 2015-01-10 04:12:03 -02:00
Bruno Pinto
6363714647 removing obsolete plugin sprunge 2015-01-09 21:15:45 -02:00
Jorge Bucaran
c76ce97d03 Add ability to escape -s and -n options using a backslash.
Add notes in comments about escaping.
2015-01-09 14:10:02 +09:00
Jorge Bucaran
2542929eb9 Separate msg utility functions into their own file:
+ msg.util.get.color.fish
  + msg.util.random.color.fish
  + msg.util.set.color.fish
  + msg.util.str.get.fish
  + msg.util.str.has.fish
2015-01-09 14:08:47 +09:00
Jorge Bucaran
8e02073145 Add msg plugin. The technicolor message printer.
+ Print messages with style and color easily. Supported styles below:

     _text_                 Bold
     __text__               Underline
     ___text___             Bold and Underline
     `$variable`            Apply @<styles> to $variables
     /directory/            Directories
     [url]                  Links
     \n                     Line Break
     \t                     Tab Space

 + Recognizes 256 different color names and special @random @light @dark @error and @success labels.
 + Included also is `msg.ask` to print a message with `msg` and wait for y/n input. Returns true on y\*.
2015-01-08 04:46:29 +09:00
Charles B Johnson
3ba9a50bee Fix issue where some rbenv commands would fail (shell, rehash).
Use rbenv fish integration, if available.

Fix rbenv "supports fish" logic.
2014-12-30 12:01:40 -08:00
Daniel Mijares
228b9c5e34 removing -e tests when cheking for -f or -d
adding local variable flag and setting the variable if java home isn't
taken care of in the first if check.

For some reason there were different tab widths for this bottom
section, unifying to what the top was at -- 2 spaces.
2014-12-30 16:38:29 -02:00
Daniel Mijares
efa2746e45 silly mistake, forgot this is a soft link and needed to follow the link 2014-12-30 16:38:29 -02:00
Daniel Mijares
e0ae3a7db4 plugin was lacking setting {}_HOME variables for all gvm installed
binaries, this fixes that.

This also sets JAVA_HOME (only tested on OSX).
2014-12-30 16:38:28 -02:00
Daniel Mijares
0bac44ceda cask plugin to add cask to $PATH 2014-12-30 16:38:28 -02:00
Bruno Pinto
30327ff522 brew plugin was not calculating the number of paths to ignore correctly 2014-12-29 14:45:21 -02:00
Bruno Pinto
494855b8a5 sending deprecation message to stderr 2014-12-23 16:42:00 -02:00
Wild Kat
1a18186cca changed code indent to 2 spaces for consistency 2014-12-23 15:55:47 -02:00
Wild Kat
bafb64147c Eliminate superficial whitespaces in ssh plugin 2014-12-23 15:55:47 -02:00
Wild Kat
c761f9442c Added documentation link for ssh helper plugin and further cleanup 2014-12-23 15:55:47 -02:00
JP Viljoen
ad63831b8f [ssh plugin] 256-colour helper stuff 2014-12-23 15:55:47 -02:00
Jichao Ouyang
c7d55526ec add capability to bash export 2014-12-23 15:46:17 -02:00
Jan Lindblom
0cbd3480a8 Allow plan plugin to read from $PLENV_ROOT (useful with Homebrew on Mac). 2014-12-17 13:51:57 +01:00
Bruno Pinto
b861a5cee1 deprecating _append_path and create _prepend_path 2014-11-29 17:15:30 +11:00
Justin Hileman
d6d10825ae Remove common .home suffix from local-config hostname. 2014-11-28 11:28:23 -05:00
Bruno Pinto
5f230e331d checking for --inherit-variable support is too slow 2014-11-28 20:17:28 +11:00
Natrim
d3daa585aa Composer plugin
- add function "composer"
- uses local composer if available
- add function "composer_install" to install composer to current dir
2014-11-28 19:45:55 +11:00
Roman Inflianskas
2d363c740d [dpaste] Make dpaste a replacement for sprunge 2014-11-28 19:44:11 +11:00
Roman Inflianskas
bb1d149e2c [dpaste] Add time options: 1, onetime, 2, twotimes 2014-11-28 19:44:11 +11:00