Commit graph

2,952 commits

Author SHA1 Message Date
Robby Russell
66c13c57e5 Merge pull request #3566 from mcornella/pfault-master
Repost #2606: fix git status in rkj-repos theme
2015-02-10 11:21:45 -08:00
Robby Russell
e0ab0d3579 Merge pull request #3483 from ai/fedora-not-found
Add Fedora support for command-not-found plugin
2015-02-10 11:21:36 -08:00
Robby Russell
339b2749ef Merge pull request #3353 from mizabrik/master
Save ZSH path in newly created .zshrc
2015-02-10 11:21:15 -08:00
Robby Russell
eb94ae8f2a Merge pull request #3143 from roramirez/theme-linux
remove path not found for linuxonly theme
2015-02-10 11:21:12 -08:00
Robby Russell
e4540514ea Merge pull request #3479 from faceleg/patch-1
Removing 'local' usage to prevent issue when installed with antigen
2015-02-10 11:20:52 -08:00
Robby Russell
43655893ad Merge pull request #3547 from martong/vi_mode_trapwinch
Added trapwinch to vi-mode plugin.
2015-02-10 11:20:42 -08:00
Robby Russell
ab33606693 Merge pull request #3413 from mcornella/fix-dircycle-plugin
dircycle plugin: clean and fix logic once and for all
2015-02-10 11:20:08 -08:00
Robby Russell
93610debff Merge pull request #3141 from muggenhor/sudo-maintain-cursor-pos
sudo: maintain cursor position
2015-02-10 11:18:32 -08:00
Robby Russell
6bcfdc9dc4 Merge pull request #3564 from mcornella/LFDM-cleaning_lib
Repost #2422: cleaning lib
2015-02-10 11:17:17 -08:00
Martin Schrodi
a6294d4271 rkj-repos: code cleanup and updated with functions from lib/git.zsh (thx mcornella) 2015-02-10 19:35:00 +01:00
Martin Schrodi
dd6dc6304e Fixed breakage in new git repo without commits 2015-02-10 19:35:00 +01:00
Marc Cornellà
a4b60cb797 Clean up appearance lib file and redundant colors calls in other files 2015-02-10 19:22:50 +01:00
Marc Cornellà
5bf216792e Implement deletion of sl alias as per #3055 2015-02-10 19:22:39 +01:00
LFDM
1d449060ff Fix a typo 2015-02-10 19:22:39 +01:00
LFDM
5523ebb9ae Deletes dot aliases from common-aliases.
They are implemented in lib anyway.
2015-02-10 19:22:39 +01:00
LFDM
1447dff588 Moves a bindkey call from misc to key-bindings. 2015-02-10 19:22:39 +01:00
LFDM
f5d0e0e48e Moves remaining aliases to misc and deletes file.
There were only three aliases left in aliases.zsh
File deleted!
2015-02-10 19:22:39 +01:00
LFDM
4322079130 Refactors history alias and moves it.
More compact case statement instead of the ugly if elif... else
statement. Moves it to history.zsh
2015-02-10 19:22:39 +01:00
LFDM
a3914e2bed 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
LFDM
4e48edc26a Brings all directory stuff to directories.zsh
- Cleans out aliases.zsh.
- Removes unneeded cd function.
2015-02-10 19:22:38 +01:00
Marc Cornellà
1c5fd6d7b6 Account for iTerm2 sent keys in dircycle plugin 2015-02-10 19:18:15 +01:00
Marc Cornellà
88e64482f2 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à
0814b84b86 Run pushd command directly and trigger prompt redraw 2015-02-10 19:18:15 +01:00
Marc Cornellà
a75f63cbab 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
6df6e9fc2a 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
212970fc5a Merge pull request #3329 from capeterson/master
Improved ant completion
2015-02-10 07:28:39 -08:00
Robby Russell
b602cddf56 Merge pull request #3419 from mcornella/fix-cake-target-cache
[Plugin: cake] switch newer-than logic to get the desired behavior
2015-02-10 07:28:01 -08:00
Robby Russell
3de8c93ffd Merge pull request #3525 from apjanke/term-pwd-in-precmd
Move pwd update output to precmd to avoid contamination
2015-02-10 07:27:03 -08:00
Chris Peterson
bc3d47ee96 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
99e6665208 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
424b18b2f6 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
Gabor Marton
c1c98730d4 Added trapwinch to vi-mode plugin. 2015-02-04 12:56:58 +01:00
Andrew Janke
375e402855 Reword comments on termsupport internal functions. 2015-02-04 01:00:51 -05:00
Michael Robinson
f442947fdf 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à
0c3db1da81 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
906a168299 Merge pull request #3478 from stephenrjohnson/custom_cache_dir
Allow custom cache dir
2015-01-31 06:23:50 -06:00
Robby Russell
daa7aa5a38 Merge pull request #3493 from NicholasTD07/patch-1
Fast installation time by shallow copying git repo
2015-01-31 06:10:21 -06:00
Robby Russell
6dc7feae69 Merge pull request #3490 from lmartins/master
Fix Plugin commands
2015-01-31 06:09:01 -06:00
Robby Russell
ee93ad347e Merge pull request #3489 from sunlight07/patch-1
activate django plugin on command "django-admin"
2015-01-31 06:08:09 -06:00
Andrew Janke
90e71fbddd Move chpwd update output from chpwd hook to precmd to avoid
contaminating script/function output
2015-01-27 21:00:07 -06:00
Nicholas T
a2c2947ff7 Fast installation time by shallow copying git repo
Use `--depth=1` to clone just the lastest version rather than every version in git.
2015-01-15 09:09:41 +10:00
Luis Martins
e912725071 Fix Plugin commands 2015-01-12 17:26:04 +00:00
Yu Jiang
82df514087 Update django.plugin.zsh
activate django plugin on command "django-admin"
2015-01-12 21:57:00 +08:00
Andrey Sitnik
cca6d2dbe2 Add Fedora support for command-not-found plugin 2015-01-10 15:38:49 +01:00
Robby Russell
ce9ea014d4 Merge pull request #3429 from apjanke/termsupport-apple-chpwd
termsupport: add chpwd hook for setting pwd in Apple Terminal.app
2015-01-09 02:45:12 -06:00
Stephen
8176a409ce Update /home/srj/.oh-my-zsh/cache references 2015-01-08 16:38:05 +00:00
Stephen
1ff3adadec Allow custom cache dir
We are running oh-my-zsh on a shared install and the only issue is each
user having a custom cache dir. This will allow us to set the cache dir
to ZSH_CACHE_DIR=~/oh-my-zsh/cache/ .
2015-01-08 16:01:16 +00:00
Jyrki Pulliainen
3c836ff301 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
Andrew Janke
5e95d19bcb termsupport: add chpwd hook for setting pwd in Apple Terminal.app 2014-12-21 15:05:22 -05:00
Robby Russell
922e1d5d34 Merge pull request #3407 from rawberg/mira-theme
mira theme shows active node, ruby and java versions
2014-12-20 12:41:25 -08:00