Currently, the title is only set on supported terminals (i.e. xterm,
urxvt, screen etc.). Using terminfo entries to set the terminal title
adds support for many more terminals.
This change enables UP-arrow and DOWN-arrow full-line history completion.
For example, if you write `git clone` and press UP:
- Before this change,
it will use the last command that starts with `git`.
- After this change,
it will use the last command that starts with `git clone`.
* blessed/master:
Add Ecosia to web-search plugin.
Use $HOME instead of tilde inside quotes
Cleanup update_terminalapp_cwd function
Quote all variables in if statements
Use a case structure to id terminal types
When the current path is /home/user/.config/doublecmd the prompt
now reads "/h/u/.c/doublecmd", not "/h/u/./doublecmd" as was the
case. This matches what the Fish shell does.
Enclose the Perl snippet in single quotes instead of double quotes.
* upstream/master: (37 commits)
Added setting of the window title in Cygwin
Support all kinds of putty-like terminal strings.
Use shwordsplit in open_command()
Add empty string parameter to start command
make this work in the git-for-windows SDK
znt: twice as fast searching
znt: updated README.md
Updated README.md
Renamed README.txt to README.md
Add support for "putty" $TERM in termsupport.zsh
znt: n-history supports multi-line cmds and starts with current buffer
Fix open_command nohup call
z plugin: fix loading from custom location
history-substring-search: update to upstream version 2015-09-28
history-substring-search: add a script to automatically update OMZ from the upstream repo
termsupport: protect subshell with quotes
Drop the use of nohup on OSX for tmux compatibility
[wd] update minor version (v0.4.2)
Cleanup gradle plugin file
gradle plugin: also list tasks in subprojects
...
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