summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2016-07-15lib/git.zsh: Added git_commits_behind function (#4450)Steven
* Added git_commits_behind function * Added 'command' to git_commits_behind function * git_commits_behind code review changes
2016-05-12Cleanup theme-and-appearance.zshMarc Cornellà
2016-05-12Delete cdablevars option by defaultMarc Cornellà
Fixes weird autocompletion of directories and named users. Fix #4864
2016-03-31Add git user profile functions for prompt displayAesop Wolf
2016-01-13Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTEMichele Bologna
Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE variable which was removed in 9f55213
2015-12-17Put `local var` declaration in its own line in lib/git.zshMarc Cornellà
In places, the local statement will override the exit code and the written command won't have the effect intended when it was written. For example, when it's not inside a git repo the exit code won't be true, but the local statement will make it true regardless. See #4708.
2015-12-14Move current_branch() from git plugin to core lib/git.zshAndrew Janke
Fixes #4085: core -> plugin dependency issue. Rename it to git_current_branch for clarity that it's git-specific. Update all plugins that were calling it to use new name. Fix variable leaks by making more variables in lib/git.zsh local. Have lib/git.zsh use [[ ]] instead of [ ] everywhere.
2015-12-14Fix indentationmoyamo
2015-12-14Default to using terminfo to set the terminal titlemoyamo
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.
2015-12-14Better research history with arrow keysdesrum_m
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`.
2015-12-13Merge pull request #3966 from apjanke/fix-spectrum-lsMarc Cornellà
Make spectrum_ls implementation consistent with $FG and spectrum_bls
2015-12-13Merge pull request #3965 from apjanke/spectrum-hide-codesMarc Cornellà
Hide spectrum.zsh var values to avoid junky output to terminal
2015-12-13Add back the `-` alias to go to the previous directoryMarc Cornellà
The alias was removed in #3564. A couple of users were using it, so I'm adding it back.
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-01Merge pull request #4651 from ionelmc/patch-1Marc Cornellà
Add support for "putty" $TERM in termsupport.zsh
2015-12-01Support all kinds of putty-like terminal strings.Ionel Cristian Mărieș
2015-11-30Use shwordsplit in open_command()Marc Cornellà
2015-11-30Add empty string parameter to start commandMarc Cornellà
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-30make this work in the git-for-windows SDKMark Ingalls
Added an option for the msys value of $OSTYPE
2015-11-30Add support for "putty" $TERM in termsupport.zshIonel Cristian Mărieș
2015-11-29Fix open_command nohup callMarc Cornellà
There a syntax error if $cmd_var contains more than one word, so we drop the current way to prepend nohup and use a simpler if-else form.
2015-11-27termsupport: protect subshell with quotesAndrew Janke
2015-11-27Drop the use of nohup on OSX for tmux compatibilityMarc Cornellà
Apparently `nohup` is not needed in OSX, and using it has the side that it may break under tmux with the error nohup: can't detach from console: No such file or directory For now, this commit only drops the use of `nohup` in OSX. But it *may* not be necessary under other similar platforms.
2015-10-20Merge pull request #4473 from apjanke/5_1_1-bracketed-paste-hackMarc Cornellà
Disable bracketed-paste-magic in zsh 5.1.1, where it is buggy
2015-10-13Merge pull request #4475 from apjanke/diagdump-5.1-fixRobby Russell
diagnostics: fix for reserved-word changes in zsh 5.1
2015-10-09Merge pull request #4254 from apjanke/copyfile-portabilityRobby Russell
Cross-platform clipboard clipcopy() and clippaste()
2015-10-08diagnostics: fix for reserved-word changes in zsh 5.1Andrew Janke
Reference: https://github.com/zsh-users/zsh/blob/zsh-5.1.1/NEWS#L20-L32
2015-10-08Disable bracketed-paste-magic in zsh 5.1.1, where it is buggyAndrew Janke
A bracketed-paste-magic bug breaks pasting of CJK and some other characters in zsh 5.1.1. http://www.zsh.org/mla/workers/2015/msg02680.html See #4434
2015-10-05clip*: add xsel supportAndrew Janke
2015-10-03Fix 'ack-grep' bug for non-ubuntu usersJeff Smith
Redirect STDERR along with STDOUT when looking for ack-grep
2015-10-03Merge pull request #3165 from hbin/fix-alias-afind-osxRobby Russell
The executable command on Mac OSX is 'ack' rather than 'ack-grep'.
2015-09-28Merge branch 'master' into copyfile-portabilityAndrew Janke
2015-09-26Merge pull request #4337 from iCross/masterRobby Russell
fix url-quote-magic not working issue
2015-09-26Merge pull request #4387 from mbologna/fix_git_equal_remoteRobby Russell
Uniform git prompt equal remote
2015-09-23Correct repo dirshawn
cvs's metadata is under CVS and not .cvs
2015-09-23fix indentationMichele Bologna
2015-09-23Uniform git prompt equal remoteMichele Bologna
Uniform git prompt equal remote to all others prompts, setting the correct symbol (if applicable) to $git_remote_status, instead of echoing it. It also solves the problem pointed out in #3911
2015-09-19Merge pull request #4251 from mcornella/fix-completion-dotsRobby Russell
Fix completion waiting dots function
2015-09-19Merge pull request #3940 from apjanke/diagnostic-dump-functionRobby Russell
Add omz_diagnostic_dump() to help with bug reporting
2015-09-19Merge pull request #3911 from mbologna/git_remote_status_equalRobby Russell
added ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE
2015-09-19Merge pull request #3582 from apjanke/fold-terminalapp-plugin-into-termsupportRobby Russell
Fold terminalapp plugin in to lib/termsupport
2015-09-19Merge pull request #2751 from drm00/fix-openbsd-colorlsRobby Russell
add check for colored ls on openbsd. (retry of #2225)
2015-09-19Merge pull request #3889 from leycec/compauditRobby Russell
Repair `zsh` Path Permissions on `oh-my-zsh` Startup under Cygwin
2015-09-10fix url-quote-magic not working issue iCross
Incompatibilites between 5.0.8 and 5.1: bracketed-paste-magic may also be necessary in order to apply url-quote-magic. Reference: https://github.com/zsh-users/zsh/blob/a9df6aaa702abf761b155cd842a7f6917be44139/Functions/Zle/url-quote-magic#L11
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à