summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-09-05Switch off line wrapping in case dots occupy extra lineMarc Cornellà
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-05Use prompt expansion sequence to color red the outputMarc Cornellà
This makes it clearer and possibly more portable for different platforms.
2015-09-05Use proper if comparisonMarc Cornellà
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 #4217 from mcornella/standard-open-commandRobby Russell
Implement and use a standard, cross-platform open command
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-09termsupport: avoid repeated dir in window title in Terminal.appAndrew Janke
2015-08-05Implement cross-platform open function open_command()Marc Cornellà
For now this supports: - Mac OS X - Linux (presumably works on all versions) - Cygwin (Windows)
2015-07-31termsupport: protect title() with `emulate -L zsh`Andrew Janke
This prevents it from malfunctioning when `setopt prompt_subst` is off.
2015-06-14Add missing space causing parse error.Ali Afshar
2015-06-14Merge pull request #3838 from forivall/hyphen-insensitiveRobby Russell
Add hyphen insensitivity
2015-06-14Merge pull request #3986 from evilhamsterman/masterRobby Russell
Only load url-quote-magic if it is available.
2015-06-10Only load url-quote-magic if it is available.Dan Mills
Partially fixes #3614
2015-06-10Add git_prompt_behind and git_prompt_existsAdam Lindberg
This adds two new theme functions for git: * `git_prompt_behind` works in a identical fashion to `git_prompt_ahead` and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if the branch is behind. * `git_prompt_remote` will output one format variable if the branch exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`). The old `git_prompt_ahead` has been changed. Using git log is subject to formatting in .gitconfig, which can be overridden and will break this function. Relying on rev-list is much more stable.
2015-06-10Added a possibility to display the remote branch and the number of commits ↵leif.hanack
you are ahead or behind
2015-06-10Recognize comments by default.Tejas Bubane
2015-04-29Add hyphen insensitivityJordan Klassen
2015-02-22Merge pull request #3538 from TheLinuxKitten/grep-if-colorRobby Russell
Test if --color=auto is a valid option for grep
2015-02-21Merge pull request #3597 from apjanke/no-dot-in-cdpathRobby Russell
Remove '.' from $cdpath to avoid Cygwin breakage
2015-02-16Do not put explicit dot in $cdpath, since it causes problems on Cygwin due ↵Andrew Janke
to an underlying zsh bug.
2015-02-15Bring back -h option to ls variantsZhiming Wang
The -h options in l, ll, and la were lost in 25b1cd6. There's no reason to remove them.
2015-02-13Extract CWD notifier back out of auto-title hooksMarc Cornellà
2015-02-10Merge pull request #3568 from mcornella/apjanke-title-disable-checkRobby Russell
Repost #3426: move DISABLE_AUTO_TITLE check to hooks
2015-02-10Temporarily delete over-engineered solutionMarc Cornellà
2015-02-10Fix for bad LC_CTYPE entryfrozen_dude
LANG is a colon-separated list of prefered locales; LC_CTYPE is single entry, therefore we need to remove all but one entry. Also, there is no need setting it if it is already set (LC_ALL also sets LC_CTYPE, so we check it too).
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-10Clean up appearance lib file and redundant `colors` calls in other filesMarc Cornellà
2015-02-10Implement deletion of sl alias as per #3055Marc Cornellà
2015-02-10Fix a typoLFDM
2015-02-10Moves a bindkey call from misc to key-bindings.LFDM
2015-02-10Moves remaining aliases to misc and deletes file.LFDM
There were only three aliases left in aliases.zsh File deleted!
2015-02-10Refactors history alias and moves it.LFDM
More compact case statement instead of the ugly if elif... else statement. Moves it to history.zsh
2015-02-10Brings all directory stuff to directories.zshLFDM
- Cleans out aliases.zsh. - Removes unneeded cd function.
2015-02-10Merge pull request #3525 from apjanke/term-pwd-in-precmdRobby Russell
Move pwd update output to precmd to avoid contamination
2015-02-04Reword comments on termsupport internal functions.Andrew Janke
2015-02-02Test if --color=auto is a valid option for grepThe Linux Kitten
2015-01-31Merge pull request #3478 from stephenrjohnson/custom_cache_dirRobby Russell
Allow custom cache dir
2015-01-27Move chpwd update output from chpwd hook to precmd to avoidAndrew Janke
contaminating script/function output
2015-01-08Allow custom cache dirStephen
We are running oh-my-zsh on a shared install and the only issue is each user having a custom cache dir. This will allow us to set the cache dir to ZSH_CACHE_DIR=~/oh-my-zsh/cache/ .
2014-12-21termsupport: add chpwd hook for setting pwd in Apple Terminal.appAndrew Janke
2014-12-19Merge pull request #3409 from unixorn/prevent-variable-clobberingRobby Russell
Add quoting to nvm.sh
2014-12-16Quote path in case $HOME has a space in it.Joe Block
I've seen stranger things on OS X, unfortunately. This reverts commit 1f5cecee4768be192e439a72a873a6cfe8720927.
2014-12-15Revert PR #3359 as this is breaking stuff for many folks. Need to rethink ↵Robby Russell
how we handle system defaults differently on this
2014-12-14Merge pull request #3359 from unixorn/dont-clobber-histsize-and-savehistRobby Russell
Don't clobber $HISTSIZE and $SAVEHIST
2014-12-14Merge pull request #3326 from DanielFGray/masterRobby Russell
ignore any grep aliases that might be defined
2014-12-13Change to alias and remove deprecated GREP_COLOROndřej Súkup
2014-12-13Tidy up the grep.zsh libraryMarc Cornellà