summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
AgeCommit message (Collapse)Author
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.
2011-03-13Re-order title/tab setting to make window titles work on OSX terminal whichMatt Cable
doesn't support tabs titles.
2011-01-30Refactor window and tab title in ttyRenaud (Nel) Morvan
Term window title and tab title are now skinable Tab title can be different from window title (when supported by term) Default theme is optimized of usuability (no %u@%m: $~ in a 10 char tab) Cleanup code duplication and add comment for supported terms On osX it works great on iterm, and is decent once you tweak Terminal pref Tested under GNU screen, iTerm and Apple Terminal, need to be tested on linux TODO implement Konsole support (via dbus)
2009-09-23put everything in libJames Cox