aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
Commit message (Collapse)AuthorAgeFilesLines
* respect TIMEWARRIORDB environment variable (#471)David Ward2020-02-051-6/+7
| | | Signed-off-by: David Ward <dward@redhat.com>
* slightly shorter bandwidth displayromkatv2020-02-051-5/+5
|
* fix netstat parsing on macosromkatv2020-02-051-1/+1
|
* fix netstat parsing on macosromkatv2020-02-051-5/+8
|
* add network bandwidth stats to `ip` segmentromkatv2020-02-051-12/+70
|
* workaround for a bug in sysreadromkatv2020-02-051-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | There is a bug in sysread from zsh/system. It triggers in the following case: 1. zsh has been compiled with HAVE_SELECT and without HAVE_POLL. 2. sysread is called with timeout (-t). 3. the input file descriptor is valid but there is no data to read. 4. errno happens to be EINTR prior to the call to sysread. This results in an infinite loop in sysread: while ((ret = select(infd+1, (SELECT_ARG_2_T) &fds, NULL, NULL,&select_tv)) < 1) { if (errno != EINTR || errflag || retflag || breaks || contflag) break; } Here select() keeps returning 0, indicating timeout. This is not an error, so errno doesn't get set. If it was EINTR prior to the call, it stays EINTR, and the loop keeps spinning. As a workaround, powerlevel10k sets errno to ENOTTY (any value other than EINTR will do) prior to calling sysread with timeout.
* when the user's locale is misconfigured, set it to utf8 at the top levelromkatv2020-02-051-11/+25
| | | | fixes #469
* remove debug messages; fixes #466Roman Perepelitsa2020-02-041-2/+0
|
* extend the ZLE_RPROMPT_INDENT=0 workaround to a few more casesromkatv2020-02-041-1/+13
| | | | | | | | If the last right prompt line can be proven to always have zero length after prompt expansion, we can unset RPROMPT thus avoiding triggering zsh bugs related to ZLE_RPROMPT_INDENT=0. Fixes #458.
* commentsromkatv2020-02-031-0/+1
|
* add wifi prompt segmentromkatv2020-02-031-2/+103
|
* typoromkatv2020-02-031-2/+2
|
* add POWERLEVEL9K_BATTERY_${state}_{STAGES,LEVEL_BACKGROUND,LEVEL_FOREGROUND}romkatv2020-02-031-21/+40
|
* quote $foo when running with unknown options; fixes #453romkatv2020-02-021-13/+13
|
* speed up terraform, add classes to configs, bump versionromkatv2020-01-311-9/+7
|
* Add support for classes to terraform segmentJérôme Foray2020-01-311-1/+9
|
* change the default timewarrior icon (shield => watch); see #295romkatv2020-01-301-1/+1
|
* bug fix: remove spurious "entry=" from instant promptromkatv2020-01-301-1/+1
|
* bug fix: don't cache range and nnn segments as their content is not staticromkatv2020-01-301-4/+0
|
* add nix_shell prompt segment; see #448romkatv2020-01-301-1/+13
|
* minor fixesromkatv2020-01-281-4/+7
|
* bump versionromkatv2020-01-281-1/+1
|
* quote override dirs form rustupromkatv2020-01-281-1/+1
|
* don't call stat in prompt_dir; use _p9k__parent_mtimes insteadromkatv2020-01-281-9/+4
|
* cleanupromkatv2020-01-281-2/+3
|
* migrate remaining segments to the new globbing apiromkatv2020-01-281-161/+202
|
* make __p9k_byte_suffix readonlyromkatv2020-01-281-1/+1
|
* s/_p9k_upsearch/_p9k_upglob/gromkatv2020-01-281-10/+10
|
* finish fast globbing and start migrating stuffromkatv2020-01-271-213/+143
|
* Merge branch 'master' into globromkatv2020-01-271-0/+1
|\
| * set prompt_subst when printing ruler; see #444romkatv2020-01-271-0/+1
| |
* | start working on faster globbingromkatv2020-01-271-52/+167
|/
* move buffer parser to internal/parser.zshromkatv2020-01-271-381/+2
|
* detect source code corruption done by antigen and suggest resetting cacheromkatv2020-01-271-1/+25
|
* add timewarrior prompt segment; see #295romkatv2020-01-261-0/+60
|
* fix prompt_char (never showed error); unify optionsromkatv2020-01-261-65/+50
|
* bump versionromkatv2020-01-261-1/+1
|
* remove trailing zeros from _p9k_human_readable_bytesromkatv2020-01-261-1/+1
|
* cleanupromkatv2020-01-261-1/+1
|
* bug fixes:romkatv2020-01-261-13/+35
| | | | | | - don't use typeset -p on zsh 5.4 as it's broken there - remove redundant local declarations from _p9k_prompt_net_iface_async - change the default value of POWERLEVEL9K_PUBLIC_IP_HOST as the old is broken
* bug fix: declare worker global vars in _p9k_init_varsromkatv2020-01-261-0/+6
|
* add P9K_KUBECONTEXT_USERromkatv2020-01-261-8/+12
|
* add _p9k__segment_{cond,va}_{left,right} and migrate swap to workerromkatv2020-01-251-129/+445
|
* process ready replies from worker synchornously in precmdromkatv2020-01-251-0/+2
|
* migrate over from the old worker api; use worker in battery on macOSromkatv2020-01-251-77/+107
|
* Merge branch 'master' into workerromkatv2020-01-241-6/+36
|\
| * cherry pick disk_usage fix from ↵romkatv2020-01-241-3/+3
| | | | | | | | https://github.com/romkatv/powerlevel10k/commit/0d33157b1232123bda62d86be6313f1012cc3bd7; see #435
| * add POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER; see #430romkatv2020-01-231-7/+37
| |
* | synthesize common prompt functionsromkatv2020-01-211-110/+55
| |
* | Merge branch 'master' into workerromkatv2020-01-201-6/+17
|\|