Marc Cornellà
fea74b4b34
Fix open_command nohup call
...
There a syntax error if $cmd_var contains more than one word,
so we drop the current way to prepend nohup and use a simpler
if-else form.
2015-11-29 19:34:10 +01:00
Marc Cornellà
ef031dfe8f
Merge pull request #4207 from mpscholten/master
...
Also accept any forms of yes as an answer to the "do you want to update?" prompt
2015-11-29 14:34:14 +01:00
Marc Cornellà
46824b39a3
Merge pull request #4191 from apjanke/vi-mode-fix-smkx
...
vi-mode: fix smkx/rmkx by removing broken line-init/finish widgets
2015-11-29 14:31:35 +01:00
Marc Cornellà
d3b9520501
Merge branch 'apjanke-z-allow-custom'
...
Closes #4578
2015-11-27 17:12:45 +01:00
Marc Cornellà
85d949550b
Merge pull request #4181 from posva/z
...
Update z version to 5dc2a86
2015-11-27 17:09:05 +01:00
Marc Cornellà
96108e1130
Merge branch 'apjanke-histsubstr-update-2015_04_26'
2015-11-27 16:59:41 +01:00
Marc Cornellà
befb5b66c5
Merge pull request #4634 from mfaerevaag/master
...
[wd] update minor version (v0.4.2)
2015-11-27 16:51:05 +01:00
Marc Cornellà
424800e881
Merge pull request #4539 from Gnouc/master
...
Update uninstall.sh
2015-11-27 16:08:32 +01:00
Marc Cornellà
90e1630163
Merge pull request #4443 from apjanke/github-update
...
Update github plugin to work with current hub versions
2015-11-27 16:07:00 +01:00
Marc Cornellà
dfe10af9fa
Merge branch 'apjanke-termsupport-protect-subshell'
...
Fixes #4565
2015-11-27 15:59:59 +01:00
Marc Cornellà
d2e1c71bfb
Merge pull request #4534 from mcornella/fix-open_command-nohup-tmux
...
Drop the use of nohup on OSX for tmux compatibility
2015-11-27 15:50:48 +01:00
Marc Cornellà
ebfba0e539
Drop the use of nohup on OSX for tmux compatibility
...
Apparently `nohup` is not needed in OSX, and using it has the side
that it may break under tmux with the error
nohup: can't detach from console: No such file or directory
For now, this commit only drops the use of `nohup` in OSX. But it
*may* not be necessary under other similar platforms.
2015-11-27 15:40:31 +01:00
Marc Cornellà
22632aac7c
Merge pull request #3859 from gnagy/master
...
gradle plugin: also list tasks in subprojects
Cleanup gradle plugin file
2015-11-21 03:24:53 +01:00
Marc Cornellà
249d2229d4
Cleanup gradle plugin file
...
- Delete useless #!zsh
- Simplify gradle build file check
- Format comments and delete TODO stuff (already dealt with)
- Use `$()` syntax for cat commands
2015-11-21 03:16:34 +01:00
Marc Cornellà
64e1252bd5
Merge pull request #4623 from apjanke/dircycle-remove-redundant-bindings
...
dircycle: remove redundant key bindings
2015-11-20 18:08:11 +01:00
Marc Cornellà
5d8fd93cac
Merge pull request #4617 from ahmadawais/patch-1
...
Removed Similar Aliases
2015-11-20 18:07:55 +01:00
Marc Cornellà
7627004a2f
Merge pull request #4612 from stereodenis/patch-1
...
bundle outdated alias
2015-11-20 18:05:21 +01:00
Marc Cornellà
5289edcee5
Merge pull request #4592 from jstnlef/fix-weird-unstaged-behavior
...
Fixing strange git unstaged prompt behavior
2015-11-20 16:42:42 +01:00
Marc Cornellà
c120417336
Merge pull request #4619 from apjanke/mercurial-readme-tweak
...
Mercurial plugin: revise README
2015-11-20 16:40:47 +01:00
Marc Cornellà
e44aa50301
Merge pull request #4535 from robbyrussell/mcornella-patch-1
...
[README] Update custom directory command and fix code blocks
2015-10-21 17:45:44 +02:00
Marc Cornellà
e9de366ea7
Update custom location command and fix code format
2015-10-21 17:39:13 +02:00
Marc Cornellà
ba20b9861e
Merge pull request #4016 from coopermaruyama/master
...
Fix typo.
Close #4016
2015-10-21 17:09:26 +02:00
Marc Cornellà
405ee83af4
Merge pull request #4500 from sachin21/modify_a_condition
...
[FIX ERROR] Refactor for function in plugins/rake-fast/rake-fast.plugin.zsh
2015-10-21 16:52:32 +02:00
Marc Cornellà
d06f4d0893
Fix backwards logic in uninstaller once and for all
...
Really this time :P
Fixes #4533
2015-10-21 16:46:38 +02:00
Marc Cornellà
4e42e1f7e1
Fix conditional in uninstall prompt
2015-10-21 11:28:12 +02:00
Marc Cornellà
b2010a0ae6
Fix syntax error in confirmation prompt of uninstall.sh
...
We need to use POSIX syntax. This file is no longer executed with zsh.
Fixes #4483 .
2015-10-21 11:24:12 +02:00
Marc Cornellà
ca5632bce1
Fix syntax error in #4515 on certain shells
...
Drops the `function` keyword and uses only `func(){}` syntax as per the
POSIX specification:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_05
Related: #4531
2015-10-21 10:48:02 +02:00
Marc Cornellà
78dc858396
Revert "Make install script safer"
...
This reverts commit c9d93757e8 , which
makes it fail with a syntax error:
sh: 1: Syntax error: "(" unexpected
2015-10-21 10:36:40 +02:00
Marc Cornellà
8c84342b20
Merge pull request #4519 from evanandrewrose/master
...
Fix "be" -> "b" typo in coffee plugin README.md.
2015-10-20 23:43:33 +02:00
Marc Cornellà
fdb0e239d4
Merge pull request #4507 from WhyEee/fix-no-tput
...
Fix install.sh/upgrade.sh for tput-less systems
2015-10-20 23:30:29 +02:00
Marc Cornellà
b3c10b925e
Merge pull request #4505 from arvindch/checked-upgrade
...
Check for git before trying to upgrade OMZ
2015-10-20 23:29:00 +02:00
Marc Cornellà
e0c9ada380
Merge pull request #4214 from queria/chuck-linefix
...
chucknorris: add missing line/quote delimiters
2015-10-20 23:05:12 +02:00
Marc Cornellà
662bdcc8d8
Merge pull request #4515 from brianloveswords/safer-install-script
...
Make install script safer
2015-10-20 22:47:02 +02:00
Marc Cornellà
a7b4c09373
Merge pull request #4526 from sachin21/fix_typo
...
[FIX #4525 ]: Fix typo
2015-10-20 12:54:10 +02:00
Marc Cornellà
8c73eb4f44
Merge pull request #4419 from apjanke/installer-termcap-hack
...
installer: ignore errors in color setup, for FreeBSD portability
2015-10-20 08:30:14 +02:00
Marc Cornellà
45f0a2800b
Merge pull request #4508 from Superbil/master
...
Fixd bug for pyenv plugin
2015-10-20 08:28:13 +02:00
Marc Cornellà
56345c26fb
Merge pull request #4473 from apjanke/5_1_1-bracketed-paste-hack
...
Disable bracketed-paste-magic in zsh 5.1.1, where it is buggy
2015-10-20 08:26:15 +02:00
Marc Cornellà
82ae41ca4c
Reorder xcode plugin file
2015-09-07 12:09:08 +02:00
Marc Cornellà
213f46a296
Add xcselv documentation in the README
2015-09-07 12:08:50 +02:00
Marc Cornellà
d95589d4e4
Add README for the xcode plugin
2015-09-05 23:17:38 +02:00
Marc Cornellà
ec3694c788
Make simulator dependant of currently active dev directory
...
This also gets rid of `xcode-select` command-not-found errors.
2015-09-05 22:47:52 +02:00
Marc Cornellà
24bdd8e29a
Replace xcsel function with just an alias
2015-09-05 22:47:52 +02:00
Marc Cornellà
6a830f39b6
Return error if no xcode files where found
2015-09-05 22:47:52 +02:00
Marc Cornellà
cbdad588e6
Use zsh globbing instead of ls + grep in xc function
...
Uses zsh arrays and globbing to find .xcworkspace and .xcodeproj files.
2015-09-05 22:47:52 +02:00
Marc Cornellà
38d25a3359
Update taskwarrior completion to latest version (Jul 26 2015)
...
See relevant commit at:
https://git.tasktools.org/projects/TM/repos/task/commits/3158883dc4d251
2015-09-05 22:47:51 +02:00
Marc Cornellà
75844fe1a1
Put relevant documentation into README file
2015-09-05 22:47:51 +02:00
Marc Cornellà
b42efeb87e
Switch off line wrapping in case dots occupy extra line
...
This commit uses the (hopefully) standard rmam and smam escape sequences
which toggle off and on line wrapping respectively.
This is so that extra dots that don't fit the current line won't be
displayed in the next line, which would in turn make the shell
display a new prompt on the next line after the dots are hidden.
I've added a check for $terminfo rmam and smam values to be sure we have
them before printing them out.
If this commit breaks something post an issue with your terminal
emulator and $TERM value and we'll figure out what went wrong.
2015-09-05 22:47:50 +02:00
Marc Cornellà
6a8d406eaa
Use prompt expansion sequence to color red the output
...
This makes it clearer and possibly more portable for different
platforms.
2015-09-05 22:47:50 +02:00
Marc Cornellà
3976e04035
Use proper if comparison
2015-09-05 22:47:50 +02:00
Marc Cornellà
c481c62bc9
Refactor and clear up README file
2015-09-02 00:26:16 +02:00
Marc Cornellà
d982e1200f
Reorder alias definitions
2015-09-02 00:26:15 +02:00
Marc Cornellà
663ac56d54
Prettify frontend help output and clean up logic
2015-09-02 00:26:14 +02:00
Marc Cornellà
f1472f1f64
Simplify frontend-search function with assoc array
...
Also adds the lodash URL (which was missing) and uses https on those websites
that support it.
2015-09-02 00:26:11 +02:00
Marc Cornellà and Igor Dejanovic
7f64092361
[vim-interaction plugin] Escaping special chars in file names and simplifying code.
2015-09-01 19:07:49 +02:00
Marc Cornellà
9121f3e9d7
Merge pull request #4 from wkentaro/fix-git-prompt-plugin
...
Show tag name when detached status if possible
2015-08-17 12:43:23 +02:00
Marc Cornellà
be667a24b0
Remove obsolete comment
2015-08-17 01:05:37 +02:00
Marc Cornellà
3c698743fa
Clean up gitstatus.py
2015-08-16 23:21:48 +02:00
Marc Cornellà
30bed07e9c
Parse UTF-8 output from git status
2015-08-16 23:02:16 +02:00
Marc Cornellà
6ff53d173b
Cleanup of git-prompt plugin file
2015-08-16 23:02:14 +02:00
Marc Cornellà
1d133ff11f
Cleanup the rest of gitstatus.py
2015-08-16 23:02:13 +02:00
Marc Cornellà
5642014ff1
Pull in simplified version from @wkentaro
...
This version uses `git status --porcelain` instead of making
multiple calls to `git status`.
2015-08-16 23:02:12 +02:00
Marc Cornellà
6443626a6b
Pull in latest version from olivierverdier/zsh-git-prompt
2015-08-16 23:02:11 +02:00
Marc Cornellà
c6a5f6efb4
Check that list_size value is not zero before division
2015-08-16 22:40:52 +02:00
Marc Cornellà
88243b846a
Use right variable name to avoid zero-length array
...
This fixes the typographic error that always assigned an undefined
array to `$names`, which made `$list_size` = 0 and triggered a
divide by zero error on the next line.
2015-08-16 22:26:33 +02:00
Marc Cornellà
be10229659
Exit only if the fbterm session closed correctly
...
This prevents the previous behavior that exitted the zsh session
even if fbterm didn't start correctly.
2015-08-09 22:45:02 +02:00
Marc Cornellà
be5dcb8a59
Check if fbterm is installed and use $TTY variable
2015-08-09 21:55:52 +02:00
Marc Cornellà
3fe3ce8bdc
Revert "Move custon *.zsh file sourcing up so that they can load plugins and other things that come after."
...
This reverts commit a28dbc8393 .
2015-08-08 01:31:02 +02:00
Marc Cornellà
ccb0ae5720
Add quotes to support folders with whitespace
2015-08-07 22:45:46 +02:00
Marc Cornellà
b760a10cb2
Use standard open command in fasd and lighthouse plugins
2015-08-05 01:18:42 +02:00
Marc Cornellà
d1d06b5675
Use standard open command in current plugins
...
Substitutes the current duplicate logic for the standard
and cross-platform function open_command in plugins:
frontend-search, jira, node, web-search
2015-08-05 00:57:40 +02:00
Marc Cornellà
2d0bfcf818
Implement cross-platform open function open_command()
...
For now this supports:
- Mac OS X
- Linux (presumably works on all versions)
- Cygwin (Windows)
2015-08-05 00:27:51 +02:00
Marc Cornellà and ncanceill
26c7adf110
Revert "Added migration notification for rails plugin"
...
This reverts commit 1493d88e3f , made
to put a deprecated notice on rails3 and rails4 plugins, so that
users would migrate to the unified rails plugin.
It's been 1.5 years since that, so everyone should be migrated to
the good one.
2015-06-13 11:05:38 +02:00
Marc Cornellà
cc639287d2
Round 3 of batch-closing obsolete issues
2015-06-03 19:36:10 +02:00
Marc Cornellà
152a751342
Revert usage of install.ohmyz.sh URL, until HTTPS support.
...
This reverts commit b6cbba9dfe .
2015-02-19 15:50:08 +01:00
Marc Cornellà
4b20bfe0ee
Fix first-tab completion in task command
...
This is done by calling `_task` at the end of the _task completion file,
as is standard in completion files.
2015-02-13 17:29:44 +01:00
Marc Cornellà
3704fbb71e
Extract CWD notifier back out of auto-title hooks
2015-02-13 15:57:18 +01:00
Marc Cornellà
0edf416bea
Temporarily delete over-engineered solution
2015-02-10 20:38:06 +01:00
Marc Cornellà
732c7b8070
Simplify adding workon_cwd to chpwd hook
2015-02-10 20:32:52 +01:00
Marc Cornellà
b62911660d
Organize error checking in virtualenwrapper plugin
2015-02-10 20:32:52 +01:00
Marc Cornellà
2e41d06b76
Use quoted $TERM value everywhere
2015-02-10 19:53:40 +01:00
Marc Cornellà
b7e5dd35ef
Quick-fix code style
2015-02-10 19:52:58 +01:00
Marc Cornellà
6fb866183d
Remove composer.json file requirement
...
This is because we can't be sure which arguments require a json file
and which don't, so the `else' statement will always be difficult to
check for correctness.
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
Marc Cornellà
51946eb3ce
Implement deletion of sl alias as per #3055
2015-02-10 19:22:39 +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
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
Marc Cornellà
711843153d
Tidy up the grep.zsh library
2014-12-13 19:52:49 +01:00
Marc Cornellà
0190eb084b
Use unaliased grep in flag check
2014-12-13 19:45:04 +01:00
Marc Cornellà
cf586b54b8
Ignore .bzr folders in grep too
2014-12-13 19:45:02 +01:00
Marc Cornellà
0bd3c9996f
Extract VCS folders definition to avoid repetition
2014-12-13 19:44:38 +01:00
Marc Cornellà
a301f567e3
Switch back to oh-my-zsh.hide-dirty setting again
...
Commit 81004dfaba reverted the change
in 9b811fb625 when editing the merge
conflict from #2928 .
This commit fixes that so that we don't make the same mistake again.
First seen in http://git.io/Cdaj5Q
2014-11-19 18:40:18 +01:00