summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
AgeCommit message (Collapse)Author
2015-12-01Cleanup update_terminalapp_cwd functionMarc Cornellà
2015-12-01Quote all variables in if statementsMarc Cornellà
2015-12-01Use a case structure to id terminal typesMarc Cornellà
2015-12-01Added setting of the window title in CygwinDawid Ferenczy
2015-12-01Support all kinds of putty-like terminal strings.Ionel Cristian Mărieș
2015-11-30Add support for "putty" $TERM in termsupport.zshIonel Cristian Mărieș
2015-11-27termsupport: protect subshell with quotesAndrew Janke
2015-08-17Merge branch 'master' into fold-terminalapp-plugin-into-termsupportAndrew Janke
2015-08-17Add defensive `emulate -L zsh` to termsupport functionsAndrew Janke
2015-08-12Merge pull request #4233 from apjanke/apple-term-no-dupe-folder-in-titleRobby Russell
termsupport: avoid repeated dir in window title in Terminal.app
2015-08-12Merge pull request #4203 from apjanke/title-protect-promptsubstRobby Russell
termsupport: protect title() with `emulate -L zsh` for portability
2015-08-12Merge pull request #2106 from adepasquale/masterRobby Russell
Added ssh-like mosh window title
2015-08-09Move urlencode/urldecode functions to core libAndrew Janke
2015-08-09termsupport: avoid repeated dir in window title in Terminal.appAndrew Janke
2015-07-31termsupport: protect title() with `emulate -L zsh`Andrew Janke
This prevents it from malfunctioning when `setopt prompt_subst` is off.
2015-02-21Add support for variant "utf8" locale suffix spelling. Fix dumb bug in iconv ↵Andrew Janke
call that would cause it to hang.
2015-02-21Remove unnecessary braces.Andrew Janke
2015-02-17For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and ↵Andrew Janke
muddle through without character encoding conversion.
2015-02-17Add support for non-UTF-8 encodings in caller's locale.Andrew Janke
2015-02-14In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text ↵Andrew Janke
processing. LANG doesn't seem to actually work.
2015-02-14Remove terminalapp plugin and fold its implementation in to ↵Andrew Janke
lib/termsupport.zsh. Replaces the redundant Terminal.app support that was recently added to termsupport.
2015-02-13Extract CWD notifier back out of auto-title hooksMarc Cornellà
2015-02-10Use quoted $TERM value everywhereMarc Cornellà
2015-02-10Quick-fix code styleMarc Cornellà
2015-02-10term: Move DISABLE_AUTO_TITLE check to hooksAndrew Janke
Move the DISABLE_AUTO_TITLE check from title() to the preX hook functions that call it, to allow the title() function to be used directly by user or other callers.
2015-02-04Reword comments on termsupport internal functions.Andrew Janke
2015-01-27Move chpwd update output from chpwd hook to precmd to avoidAndrew Janke
contaminating script/function output
2014-12-21termsupport: add chpwd hook for setting pwd in Apple Terminal.appAndrew Janke
2014-08-22Fix missing add-zsh-hookJingwen Owen Ou
In older version of zsh, `add-zsh-hook` is not available, causing issues like: ``` /Users/hugo/.oh-my-zsh/lib/termsupport.zsh:32: add-zsh-hook: function definition file not found /Users/hugo/.oh-my-zsh/lib/termsupport.zsh:33: add-zsh-hook: function definition file not found ``` See https://github.com/robbyrussell/oh-my-zsh/issues/748. This patch pulls in the changes suggested in https://github.com/robbyrussell/oh-my-zsh/issues/748#issuecomment-37862691 by @mcornella and I have tested it on RHEL 5.
2014-06-05Added ssh-like mosh window titleAndrea De Pasquale
Display the hostname when running Mosh (http://mosh.mit.edu/). Same thing as displaying "hostname" when running "ssh hostname".
2014-03-25Escape % in $CMD variableMarc Cornellà
Fixes formatting on some rare cases when a percent ends up in the $CMD variable, like these below: - When assigning a variable, $CMD ends up with the second parameter; in this case, $CMD will contain '+%s%N', messing with the syntax: $ a=`date +%s%N` - A function (or command in general) that contains a percent symbol: $ to\%() { echo $(( $1 * 100 / $3))\% } # $CMD=to%() $ to% 2 of 10 # $CMD=to%
2014-02-21Avoid 'title:parse error' with single quotes in $CMDMarc Cornellà
Fixes #2182
2014-02-21Revert previous commit, escape %Marc Cornellà
2014-02-21Use single quotes also in $LINE definitonMarc Cornellà
2014-02-21Avoid evaluating special chars in $LINE on title command (fixes #2234)Marc Cornellà
2013-06-11Escape both % and $ in the command lineEhren Kret
Fixes issue #1884
2013-02-14Support for opening tabs and windows in the same This fixed #1498 for me on ↵Swanand Pagnis
Mountain Lion
2012-12-31Fixes #1489Robby Russell
Revert "Fixed Mac OS X Terminal.app related issue with extra newlines being printed out sometimes" This reverts commit 8f89d4d5a5d584bae288d8111d83a6489a1369dc.
2012-12-04Merge pull request #880 from darrenclark/fix-mac-terminal-app-echo-issueRobby Russell
Fixed Mac OS X Terminal.app related issue with extra newlines echoed
2012-12-02resolving conflict in termsupport pluginTrae Robrock
2012-10-03fix title setting bug in xterm and urxvtMarkus Scherer
Before this patch, commands containing %-signs set the title wrong (urxvt and xterm) [1] and produce strange output in urxvt [2]. test for bug 1: > sleep 10 && echo % sets title to "sleep 10 && echo %<<" > sleep 10 && echo %f doesn't change the title at all test for bug 2 (only urxvt): > echo %f 39m%f ^^^^^----- output
2012-03-07Disabled title function for emacs term modeJeffrey Dileo
2012-01-27Fixed Mac OS X Terminal.app related issue with extra newlines being printed ↵Darren Clark
out sometimes
2011-11-15lib/termsupport now uses add-zsh-hookChristian Höltje
This is needed to play nice with plugins that need various hooks.
2011-05-02Relax pattern matching on TERM. Closes #320.Renaud (Nel) Morvan
2011-04-04Refactor DISABLE_AUTO_TITLE to be more DRYRenaud (Nel) Morvan
2011-04-04Command title behavior no longer depend on local zsh configurationRenaud (Nel) Morvan
Fix by derekjw. closes #52.
2011-04-04Escape characters used in escape sequence to avoid triggering bugs in Apple ↵Renaud (Nel) Morvan
Terminal Closes #45 #57 #58 #86.
2011-03-23Introduce DISABLE_AUTO_TITLE optionLorrin Nelson
2011-03-16Revert "Re-order title/tab setting to make window titles work on OSX ↵Robby Russell
terminal which" Was causing iTerm title to disappear entirely.. This reverts commit d4ea399b04ef57dd31097eadc316305d1e42a194.