Commit graph

1623 commits

Author SHA1 Message Date
Andrey Janzen
5f4e8e57da Allow completion for 'composer.phar', not only 'composer'
Use $_comp_command1 for command list generation instead of 'composer':

  `$_comp_command1` contains the command written in the command line.
  This allows us to have a different composer name
2015-02-10 19:32:59 +01:00
Julien Pepy
0cc3afe277 Fix get command list for recent composer versions 2015-02-10 19:32:59 +01:00
Marc Cornellà
02d75684f3 Force using https in Yandex search engine 2015-02-10 19:32:52 +01:00
Marc Cornellà
e8daf8150e Fix yahoo search URL in web-search plugin 2015-02-10 19:32:52 +01:00
Marc Cornellà
c45885093f Add support for cygwin open in web-search plugin 2015-02-10 19:32:52 +01:00
Marc Cornellà
adaea31ca0 Silence nohup output in web-search plugin 2015-02-10 19:32:52 +01:00
Marc Cornellà
80ba54a94f Add Yandex support to web-search plugin 2015-02-10 19:32:52 +01:00
Marc Cornellà
80d856e165 Clean up web-search plugin logic to allow easier changes 2015-02-10 19:32:52 +01:00
Marc Cornellà
2193135ebc Clean up appearance lib file and redundant colors calls in other files 2015-02-10 19:22:50 +01:00
LFDM
724143c329 Deletes dot aliases from common-aliases.
They are implemented in lib anyway.
2015-02-10 19:22:39 +01:00
LFDM
ace98846ea Pushes autoenv code to its plugin.
Sources the activate.sh file or informs the user, that its not
available.
Overriding the cd function, as it was formerly done, is not needed
anymore, activate.sh does this by itself.
2015-02-10 19:22:38 +01:00
Marc Cornellà
282240bf37 Account for iTerm2 sent keys in dircycle plugin 2015-02-10 19:18:15 +01:00
Marc Cornellà
999bab187c Emulate zsh in zlewidgets instead of static setopt command
This way the user can keep their preferred pushd syntax while enabling
us to use a standard syntax in our defined functions.

To explain further, without a clear value on the PUSHD_MINUS option, we
could be changing the +1/-0 values all we want, that some user would
find that it didn't work for him.

We have two options, then:
- Setting a particular value, which was my first approach.
- Using `emulate -L zsh` to ensure all options defined in the function's
  body won't be passed along to the main zsh instance.
  For more info see:
  http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#index-emulate
2015-02-10 19:18:15 +01:00
Marc Cornellà
e93fd939ad Run pushd command directly and trigger prompt redraw 2015-02-10 19:18:15 +01:00
Marc Cornellà
5fe22fcbc6 Clean up and fix +1/-0 syntax to work as expected
This change follows this proposed behaviour:

 Ctrl+Shift+Left:  move to last visited directory
 Ctrl+Shift+Right: move to next visited directory

an alternative behaviour would be:

 Ctrl+Shift+Left:  move directory to the left in `dirs` output
 Ctrl+Shift+Right: move directory to the right in `dirs` output

It also introduces `setopt nopushdminus` as a way to standardise
pushd syntax. It's value wasn't clear before, which has been the
cause of so many pull requests regarding this plugin not working
in some environments.
2015-02-10 19:18:14 +01:00
Robby Russell
13e5afe805 Merge pull request #3164 from nailor/fix-deactivate-bug
virtualenvwrapper: Deactivate only if in virtualenv
2015-02-10 07:28:51 -08:00
Robby Russell
811f1f9eb9 Merge pull request #3329 from capeterson/master
Improved ant completion
2015-02-10 07:28:39 -08:00
Chris Peterson
349493a0b8 Fix for ant targets with leading dash
As suggested in https://github.com/robbyrussell/oh-my-zsh/pull/3329#issuecomment-72062236
2015-02-09 13:12:02 -08:00
Chris Peterson
013b2bffcf Change ant target enumeration
Make use of ant's project help feature instead of trying to parse XML with regex (see: http://stackoverflow.com/a/1732454/740787).
This is a behavioral change that does a few things:
 • adds support for ant imports, which were previously not recognized as possibly containing targets
 • supresses targets with no description, as these are conventionally for internal use only
2015-02-09 13:12:02 -08:00
Chris Peterson
7f636ba590 Backwards logic in newer check.
Regen .ant_targets only if it's newer than build.xml? Yeah, that seems wrong.
2015-02-09 13:12:02 -08:00
Mathias Geat
2e0da6864b add chucknorris plugin 2015-02-05 07:43:42 +01:00
Gabor Marton
7de44dbdb7 Added trapwinch to vi-mode plugin. 2015-02-04 12:56:58 +01:00
Bilal Budhani
431faa924e Creates Ember-cli plugin and Adds its aliases 2015-02-04 15:39:34 +05:30
Michael Robinson
8ccfc3d444 Removing 'local' usage to prevent issue when installed with antigen
Error encountered when installed with antigen: "chpwd:2: no such file or directory:".  Solution described in https://github.com/zsh-users/antigen/issues/75
2015-02-02 11:52:07 +13:00
Marc Cornellà
e60458793a Switch newer-than logic to get the desired behavior
In the old version, the function returned true (0) if the cache file
was newer than the Cakefile, which was *always* unless the Cakefile
had been updated. Therefore we generated the file every time unless
the Cakefile was updated, which was precisely when we needed to
regenerate the cache file.

Now it generates the cache file only when the Cakefile has been
updated.
2015-02-01 23:32:38 +01:00
Robby Russell
550ccca91c Merge pull request #3478 from stephenrjohnson/custom_cache_dir
Allow custom cache dir
2015-01-31 06:23:50 -06:00
Robby Russell
147ebd60d9 Merge pull request #3490 from lmartins/master
Fix Plugin commands
2015-01-31 06:09:01 -06:00
Luis Martins
3abc2a4375 Fix Plugin commands 2015-01-12 17:26:04 +00:00
Yu Jiang
3c4998319a Update django.plugin.zsh
activate django plugin on command "django-admin"
2015-01-12 21:57:00 +08:00
Andrey Sitnik
f997ed7ed8 Add Fedora support for command-not-found plugin 2015-01-10 15:38:49 +01:00
Stephen
ceb42ecdb6 Update /home/srj/.oh-my-zsh/cache references 2015-01-08 16:38:05 +00:00
Jyrki Pulliainen
833e6f5958 virtualenvwrapper: Deactivate only if in virtualenv
If user manually deactivates the virtualenv when using this mode, zsh
will produce following error:

    deactivate:12: command not found: virtualenv_deactivate

To avoid this, check that the VIRTUAL_ENV flag is set before trying to
automatically deactivate the virtual environment.

Fixes #2185
2015-01-07 18:17:29 +01:00
Robby Russell
da1ca8876e Merge pull request #3404 from ekaragodin/master
Added Yii2 command completion
2014-12-20 12:40:47 -08:00
Robby Russell
0c47d8cfe4 Merge pull request #3146 from typekpb/tmux-aliases
additional tmux aliases
2014-12-20 12:38:43 -08:00
Robby Russell
304e8f0480 Merge pull request #3338 from eripa/chruby_fix
Fix chruby plugin to not complain if chruby is *not* installed
2014-12-20 12:37:18 -08:00
Robby Russell
b0ad3d7c70 Merge pull request #3352 from benjaoming/virtualenvwrapper_workon_unset
Throw an error message when $WORKON_HOME is not set
2014-12-20 12:37:05 -08:00
Robby Russell
fe2ccb30af Merge pull request #3397 from peteches/master
Fixed output issues webith websearch plugin.
2014-12-20 12:36:27 -08:00
Robby Russell
5167450ef9 Merge pull request #3424 from bergvandenp/docker_exec
added exec command to docker plugin
2014-12-19 20:30:59 -08:00
Robby Russell
4a56c6b30b Merge pull request #3303 from iml/brew-update
Remove deprecated brew commands, update core commands
2014-12-19 20:27:54 -08:00
Robby Russell
1b2d7fd9e9 Merge pull request #3362 from emarashliev/master
Added Xcode alias for deleting Derived Data.
2014-12-19 20:26:50 -08:00
Robby Russell
dc9af89669 Merge pull request #3372 from bbiao/compatible-with-new-autojump
autojump installed from github has mv the autojump.zsh to $HOME/.autojum...
2014-12-19 20:26:08 -08:00
Robby Russell
9e794a5d3e Merge pull request #3410 from Superbil/master
Fix aws.plugins.zsh check rule
2014-12-19 20:20:21 -08:00
Paul van den Berg
9e5f0f0e9d added exec command to docker plugin 2014-12-18 23:22:48 +01:00
Christophe Coevoet
f7deb52c47 Update the list of Heroku Postgres commands 2014-12-16 17:35:08 +01:00
Superbil
7931d5ce1a
Fix aws.plugins.zsh check rule
Check _aws_zsh_completer_path had exist or not
2014-12-16 00:51:22 +08:00
ekaragodin
00ff1bbd1c Updated Yii2 command completion 2014-12-15 21:37:38 +06:00
ekaragodin
7488e9b510 Add yii2 readme 2014-12-15 08:18:18 +06:00
Robby Russell
0a96bb1577 Merge pull request #2094 from frantzmiccoli/phing-fix
Phing plugin improvment
2014-12-14 16:44:06 -08:00
Robby Russell
fe75c968ef Merge pull request #3399 from ryan-robeson/add-itunes-shuffle-command-to-osx-plugin
Add itunes shuffle command to OSX plugin.
2014-12-14 16:35:45 -08:00
Robby Russell
77bfdc69ab Merge pull request #3395 from vmalloc/patch-1
Fix dircycle plugin
2014-12-14 16:35:02 -08:00
Robby Russell
eced76e0fd Merge pull request #3326 from DanielFGray/master
ignore any grep aliases that might be defined
2014-12-14 16:32:11 -08:00
ekaragodin
08b9f8d677 Added Yii2 command completion 2014-12-14 11:43:52 +06:00
Ryan Robeson
43a2e24c25 Add itunes shuffle command to OSX plugin.
Added shuffle functionality to the itunes command in the OSX plugin.
iTunes 12 doesn't support setting the "shuffle" property on the playlist
from what I've read, so this simulates the user interacting with the
iTunes interface. The toggle option "clicks" the shuffle button in the
Now Playing area. This has the effect of toggling the shuffle setting on
whatever is currently playing. The on and off options use the Shuffle
menu bar items.

Usage: itunes shuffle [on|off|toggle]
2014-12-12 17:48:17 -05:00
Pete "Peteches" McCabe
1d2c1e8ab8 Fixed output issues webith websearch plugin.
- if user has rm set as an alias to 'rm -i' user is prompted to whether to
  remove the nohup.out file.

 $ ddg fools
	nohup: ignoring input and appending output to ‘nohup.out’
	rm: remove regular empty file ‘nohup.out’?

- if output redirected to a file nohup will not create nohup.out and rm is
  unecessary.
2014-12-12 17:37:35 +00:00
Rotem Yaari
9677cfb34e Fix dircycle plugin
dircycle right did not behave as expected and was fixed
2014-12-11 23:41:47 +02:00
ZHANG Biao
a19d1d1f05 autojump installed from github has mv the autojump.zsh to $HOME/.autojump/share/autojump/autojump.zsh 2014-12-04 11:38:37 +08:00
Ion Marusic
011f25d492 Fixed command autocomplete for Symfony 2.6.x 2014-12-02 20:10:47 +02:00
Emil Marashliev
575bb91b5f Added Xcode alias for deleting Derived Data. 2014-12-01 13:34:18 +02:00
benjaoming
4b05e548d0 Throw an error message when $WORKON_HOME is not set
Took me a while to figure this one out, and I have a default installation of virtualenvwrapper -- this is a soft fix, just put an error message. But perhaps the fix should be to use the default value `~/.virtualenvs`.
2014-11-28 14:41:34 +01:00
Robby Russell
43aa3783f8 Merge pull request #2448 from gawashburn/master
Fix autojump script to support Nix installations
2014-11-27 20:03:06 -08:00
Robby Russell
5acfdf5c90 Merge pull request #2871 from wrboyce/extract-pigz
use pigz if available in extract plugin
2014-11-27 20:02:40 -08:00
Robby Russell
4610add16d Merge pull request #3092 from MWers/aws-brew-issue
[aws plugin] Changed brew cmd to properly report if awscli is installed via homebrew
2014-11-27 20:02:08 -08:00
Will Boyce
db8eacf6fd use pigz if available in extract plugin 2014-11-26 14:20:00 +00:00
Eric Ripa
1dfadc734c Fix chruby plugin to not complain if chruby is *not* installed 2014-11-24 09:54:50 +01:00
Kravchuk S.V
0c04470f63 [~] fix plugin pj
bce74975d0
2014-11-16 22:38:27 +03:00
DanielFGray
00ec11d3c0 ignore any grep aliases that might be defined 2014-11-16 02:47:35 -06:00
Geoffrey Washburn
923d2c85b4 Fix autojump script to support Nix installations 2014-11-15 13:32:34 -05:00
Ian Lancaster
8bd8597e12 Remove deprecated brew commands, update core commands
`brew services` and `brew server` were moved to homebrew-boneyard.
2014-11-08 05:03:24 -05:00
Benjamin Stier
11253336cf Fixes the profiles-plugin
An error was introduced with 7f75bb9, which uses special vars. This is the
fix.
2014-11-07 10:47:27 +01:00
Marc Cornellà
95d795e8ca Change all hostname calls for $HOST or $SHORT_HOST 2014-11-06 18:33:56 +01:00
Marc Cornellà
4310a15de5 Change all pwd calls for $PWD variable
This avoids spawning additional processes as $PWD **always** contains
the current working directory.
2014-11-06 18:33:56 +01:00
Marc Cornellà
74177c5320 Change all whoami calls for $USER variable
This avoid spawning additional processes, as the $USER variable will
**always** contain the current logged-in user.
2014-11-06 18:33:56 +01:00
Robby Russell
7034b01cd1 Merge pull request #3213 from nikhgupta/features/fix-emoji-clock
added support for GNU version of `date`
2014-11-06 09:28:30 -08:00
Robby Russell
8a51bfd76b Merge pull request #3108 from mfaerevaag/master
[wd] New minor version (v0.4)
2014-11-06 09:28:08 -08:00
Robby Russell
35f1a23735 Merge pull request #3131 from halilim/remove-j-alias
Remove j alias for autojump
2014-11-06 09:27:56 -08:00
Robby Russell
510055a03a Merge pull request #3081 from pavoljuhas/master
update the scd plugin for smart change of directory.
2014-11-06 09:27:43 -08:00
Robby Russell
6118446575 Merge pull request #2974 from elliottwilliams/patch-1
Fix osx function: "not valid in this context"
2014-11-06 09:27:16 -08:00
Robby Russell
e423ca04c8 Merge pull request #2976 from shammellee/patch-1
typo
2014-11-06 09:26:56 -08:00
Robby Russell
57ff83db59 Merge pull request #2946 from moinakg/master
Solaris portability tweaks.
2014-11-06 09:26:48 -08:00
Robby Russell
1b65c55fcf Merge pull request #2959 from crkochan/fix_rake_command
Fix for recusion limit hit for _rake_command alias
2014-11-06 09:19:49 -08:00
Robby Russell
2984d2dc4b Merge pull request #2168 from riyad/modernize-virtualenv
Modernize the virtualenv plugin
2014-11-06 09:14:17 -08:00
Robby Russell
ed01122804 Merge pull request #1604 from franklouwers/master
Improve pj-plugin to support projects with spaces in their names + optimise code
2014-11-06 09:13:56 -08:00
Robby Russell
548b9c447d Merge pull request #3224 from Neal/xcode-simulator-fix
Update path for the iOS simulator.
2014-11-06 09:13:40 -08:00
Robby Russell
ba6bf248b4 Merge pull request #3230 from willmendesneto/fix-compass-doc-search
Fix error using compass search alias
2014-11-06 09:13:24 -08:00
Pavol Juhas
b6012bc2c3 Update to the upstream smart-change-directory.
Synced with the master branch
pavoljuhas/smart-change-directory@20b5a80cf0.
2014-11-02 12:33:56 -05:00
Neal
071de5fb39 Make the simulator alias work with older Xcode versions as well. 2014-10-27 22:17:26 -05:00
Marc Cornellà
b452cafb16 Follow-redirect and silent mode curl throughout gitignore
This commit completes previous efforts and standardizes both curl commands
into using silent mode and following redirects in case the URL changes
again in the future.
2014-10-22 18:13:15 +02:00
WooParadog
04d1428fcb Fix gitignore curl, should follow redirects 2014-10-22 18:13:15 +02:00
Alex Shaindlin
69a0b280c7 Fix misspellings in gitignore plugin 2014-10-22 18:13:15 +02:00
Andrii Kostenko
b9a11b16fe fixed URL on github.io
github.io moved to https and http returns 301 redirect
2014-10-22 18:13:15 +02:00
Markus Faerevaag
9f801ff48d [wd] fix space in path 2014-10-21 09:54:15 +02:00
willmendesneto
6f1eb081e3 Fix error using compass search alias 2014-10-18 11:06:24 -03:00
Neal
d794a502f6 Update path for the iOS simulator. 2014-10-14 13:57:19 -05:00
Nikhil Gupta
71ee0d7b2b added support for GNU version of date 2014-10-14 20:44:31 +05:30
Moinak Ghosh
5f38a537ce Update Solaris changes to use OSTYPE and zsh datetime module. 2014-09-16 22:29:52 +05:30
Peter Butkovic
eb0549750f additional tmux aliases 2014-09-16 10:35:43 +02:00
Giel van Schijndel
1e7c6743a7 sudo: maintain cursor position
I.e. when prefixing the current command-line with 'sudo ' maintain the
current cursor position instead of jumping to the end of the line.
2014-09-15 15:36:34 +02:00
Halil Özgür
7a5d68c963 Remove j alias for autojump
j alias conflicts with autojump's j() function. Fixes #2989
2014-09-13 10:30:16 +03:00
Markus Faerevaag
b5093859af [wd] Minor bug fix in show command 2014-09-08 09:09:44 +02:00
Markus Faerevaag
6855dd4727 [wd] New minor version (v0.4) 2014-09-07 21:56:34 +02:00