Marc Cornellà
cdf446ad54
Switch off line wrapping in case dots occupy extra line
...
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-05 22:47:50 +02:00
Marc Cornellà
f61735f3ca
Use prompt expansion sequence to color red the output
...
This makes it clearer and possibly more portable for different
platforms.
2015-09-05 22:47:50 +02:00
Marc Cornellà
edeb71c607
Use proper if comparison
2015-09-05 22:47:50 +02:00
Andrew Janke
04e66c2d10
diagnostics: switch to shasum, filter sysinfo using lines
...
shasum seems more widely available than md5/md5sum, and we don't have to worry about dealing with the different signatures and output formats of md5 and md5sum then.
sysinfo outputs localized message labels, so we can't just grep for "OS Type". But OS is the first thing it outputs, so we can probably just grab those lines by line number. Switched to doing that.
2015-09-04 14:13:00 -04:00
Andrew Janke
f9965f3300
Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions.
...
Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
2015-08-18 03:49:51 -04:00
Andrew Janke
cab6799f65
Merge branch 'master' into fold-terminalapp-plugin-into-termsupport
2015-08-17 20:59:39 -04:00
Andrew Janke
5d4729bcc8
Add defensive emulate -L zsh to termsupport functions
2015-08-17 20:55:41 -04:00
Andrew Janke
b36a7180bb
Add a deprecation comment.
2015-08-17 20:51:41 -04:00
Robby Russell
2b8350f16b
Merge pull request #4233 from apjanke/apple-term-no-dupe-folder-in-title
...
termsupport: avoid repeated dir in window title in Terminal.app
2015-08-12 21:15:59 -07:00
Robby Russell
b0f990bba1
Merge pull request #4217 from mcornella/standard-open-command
...
Implement and use a standard, cross-platform open command
2015-08-12 21:14:27 -07:00
Robby Russell
1918c35ee5
Merge pull request #4203 from apjanke/title-protect-promptsubst
...
termsupport: protect title() with `emulate -L zsh` for portability
2015-08-12 21:12:21 -07:00
Robby Russell
850cb259e3
Merge pull request #2106 from adepasquale/master
...
Added ssh-like mosh window title
2015-08-12 21:01:00 -07:00
Andrew Janke
c47cc30abe
Move urlencode/urldecode functions to core lib
2015-08-09 16:28:47 -04:00
Andrew Janke
46874e16e5
termsupport: avoid repeated dir in window title in Terminal.app
2015-08-09 15:15:12 -04:00
Marc Cornellà
8c8a124e84
Implement cross-platform open function open_command()
...
For now this supports:
- Mac OS X
- Linux (presumably works on all versions)
- Cygwin (Windows)
2015-08-05 00:27:51 +02:00
Andrew Janke
12a7bbf731
termsupport: protect title() with emulate -L zsh
...
This prevents it from malfunctioning when `setopt prompt_subst` is off.
2015-07-31 22:23:12 -04:00
Andrew Janke
ec47af6fdd
diagnostics: include output file name in dump output
2015-07-22 12:59:39 -04:00
leycec
0615ee9a89
Insecure completion handler added.
...
A new "lib/compfix.zsh" script defining a new handle_completion_insecurities()
function has been added, which handles insecure completion directories by
notifying users of said insecurities and moving away all existing completion
caches to a temporary directory. While intended to be called at startup, this
function is generally callable at any time (e.g., for testing).
2015-07-11 01:52:04 -04:00
Bin Huang
e6d12f8cf0
The executable command on Mac OSX is 'ack' rather than 'ack-grep'.
2015-07-11 09:32:05 +08:00
Andrew Janke
555ac8dae9
diagnostics: include detailed OS version info if possible
2015-07-09 21:18:11 -04:00
Andrew Janke
2ea179630e
omz_diagnostic_dump: Add umask and $fpath listing.
...
This helps catch issues with compinit and insecure directories.
2015-06-28 18:00:47 -04:00
Michele Bologna
f4ae39cf09
In addition to the already existing variables ZSH_THEME_GIT_PROMPT for behind,
...
ahead and diverged remote, I added ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE.
2015-06-15 10:15:22 +02:00
Ali Afshar
9148a3fb58
Add missing space causing parse error.
2015-06-14 22:29:11 -07:00
Robby Russell
20464798b1
Merge pull request #3838 from forivall/hyphen-insensitive
...
Add hyphen insensitivity
2015-06-14 22:17:43 -07:00
Robby Russell
ef8a8a9c26
Merge pull request #3986 from evilhamsterman/master
...
Only load url-quote-magic if it is available.
2015-06-14 22:09:13 -07:00
Dan Mills
9d7fba58af
Only load url-quote-magic if it is available.
...
Partially fixes #3614
2015-06-10 15:49:47 -07:00
Adam Lindberg
f12d7c9896
Add git_prompt_behind and git_prompt_exists
...
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-10 14:36:55 +02:00
leif.hanack
7c0f3ae6df
Added a possibility to display the remote branch and the number of commits you are ahead or behind
2015-06-10 14:36:54 +02:00
Tejas Bubane
6587a00c75
Recognize comments by default.
2015-06-10 14:36:54 +02:00
Andrew Janke
fd0c33f837
Fix the spectrum_ls implementation in spectrum.zsh
2015-06-08 07:19:57 -04:00
Andrew Janke
c93f3679c8
Hide spectrum.zsh var values to avoid junky "set" output to terminal
2015-06-08 07:07:45 -04:00
Andrew Janke
0a7629909b
Fix name of backed-up zshrc
2015-06-06 11:50:05 -04:00
Andrew Janke
2be76f40b9
diagnostics: add zstyle state to output
2015-06-06 11:04:14 -04:00
Andrew Janke
b28fba341e
Include some bash rc files; improve formatting; more version info
2015-06-06 01:19:29 -04:00
Andrew Janke
91f66d644b
Add omz_diagnostic_dump() to help with bug reports.
2015-05-29 23:22:07 -04:00
Jordan Klassen
7f8d78b62f
Add hyphen insensitivity
2015-04-29 15:37:39 -07:00
Robby Russell
af3264d232
Merge pull request #3538 from TheLinuxKitten/grep-if-color
...
Test if --color=auto is a valid option for grep
2015-02-22 10:17:16 -08:00
Robby Russell
d6394c769c
Merge pull request #3597 from apjanke/no-dot-in-cdpath
...
Remove '.' from $cdpath to avoid Cygwin breakage
2015-02-21 17:04:24 -08:00
Andrew Janke
67dd0aa248
Add support for variant "utf8" locale suffix spelling. Fix dumb bug in iconv call that would cause it to hang.
2015-02-21 16:25:28 -05:00
Andrew Janke
48bc7332b9
Remove unnecessary braces.
2015-02-21 16:00:40 -05:00
Andrew Janke
8a95a6a868
For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and muddle through without character encoding conversion.
2015-02-17 00:54:54 -05:00
Andrew Janke
801bb8852f
Add support for non-UTF-8 encodings in caller's locale.
2015-02-17 00:49:53 -05:00
Andrew Janke
22a346bf90
Do not put explicit dot in $cdpath, since it causes problems on Cygwin due to an underlying zsh bug.
2015-02-16 10:24:22 -05:00
Zhiming Wang
f5c01fbfe0
Bring back -h option to ls variants
...
The -h options in l, ll, and la were lost in 25b1cd6 . There's no reason
to remove them.
2015-02-15 11:37:28 -08:00
Andrew Janke
d20a670fff
In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text processing. LANG doesn't seem to actually work.
2015-02-14 20:30:03 -05:00
Andrew Janke
c3d1b4097d
Remove terminalapp plugin and fold its implementation in to lib/termsupport.zsh. Replaces the redundant Terminal.app support that was recently added to termsupport.
2015-02-14 19:05:27 -05:00
Marc Cornellà
9bb3886377
Extract CWD notifier back out of auto-title hooks
2015-02-13 15:57:18 +01:00
Robby Russell
0a4b5a1190
Merge pull request #3568 from mcornella/apjanke-title-disable-check
...
Repost #3426 : move DISABLE_AUTO_TITLE check to hooks
2015-02-10 11:49:56 -08:00
Marc Cornellà
21bfda38e8
Temporarily delete over-engineered solution
2015-02-10 20:38:06 +01:00
frozen_dude
d6e9cb5d39
Fix for bad LC_CTYPE entry
...
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-10 20:37:35 +01:00