oh-my-zsh/lib
Marc Cornellà afdfe2391e Add empty string parameter to start command
Otherwise `start` will confuse the first parameter as the title of
a new command prompt if the parameter contains whitespace. That is
because the command to be run will be:

    start "abc def"

which opens a new command prompt window with the title "abc def".
With the added empty string we force the start command to interpret
the passed parameter as the file / command:

    start "" "abc def"

which will be interpreted like `""` is the title and the rest is
the file or command to start.

-------

**NOTE:** this wouldn't be necessary if the start script in msys
was defined differently; that is, if it had the empty string
already incorporated in the script (/usr/bin/start), like so:

```diff
-cmd //c start "${@//&/^&}"
+cmd //c start "" "${@//&/^&}"
```

Notice however that this would make it impossible to use start
setting a different title, so it's probably best to leave it as is.

More info: http://sourceforge.net/p/msys2/tickets/14/

-------

The change `${(z)open_cmd}` is necessary to force zsh to split the
variable by the spaces and interpret it as separate words.

More info: http://zsh.sourceforge.net/FAQ/zshfaq03.html#l17
2015-11-30 21:21:28 +01:00
..
bzr.zsh Modification to the frisk theme to work with the BZR lib 2013-11-06 20:10:59 -02:00
clipboard.zsh clip*: add xsel support 2015-10-05 05:13:11 -04:00
compfix.zsh Insecure completion handler added. 2015-07-11 01:52:04 -04:00
completion.zsh Switch off line wrapping in case dots occupy extra line 2015-09-05 22:47:50 +02:00
correction.zsh Ordering nocorrect aliases alphabetically 2014-05-24 20:07:06 +02:00
diagnostics.zsh diagnostics: fix for reserved-word changes in zsh 5.1 2015-10-08 22:31:39 -04:00
directories.zsh Bring back -h option to ls variants 2015-02-15 11:37:28 -08:00
functions.zsh Add empty string parameter to start command 2015-11-30 21:21:28 +01:00
git.zsh fix indentation 2015-09-23 11:14:14 +02:00
grep.zsh Correct repo dir 2015-09-23 18:47:09 -04:00
history.zsh Refactors history alias and moves it. 2015-02-10 19:22:39 +01:00
key-bindings.zsh Moves a bindkey call from misc to key-bindings. 2015-02-10 19:22:39 +01:00
misc.zsh Disable bracketed-paste-magic in zsh 5.1.1, where it is buggy 2015-10-08 22:13:42 -04:00
nvm.zsh Quote path in case $HOME has a space in it. 2014-12-16 13:22:31 -08:00
prompt_info_functions.zsh No need to eval in rvm_prompt_info! 2014-01-07 19:08:20 +01:00
spectrum.zsh Updates spectrum.zsh 2013-12-31 14:54:34 +01:00
termsupport.zsh termsupport: protect subshell with quotes 2015-11-27 15:58:06 +01:00
theme-and-appearance.zsh Merge pull request #2751 from drm00/fix-openbsd-colorls 2015-09-19 08:46:13 -07:00