aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
Commit message (Collapse)AuthorAgeFilesLines
...
* do not infer nix_shell from PATH unless ↵Roman Perepelitsa2023-04-121-4/+8
| | | | POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH is set to true (#2246)
* simplify _p9k_url_escapeRoman Perepelitsa2023-04-071-10/+3
|
* nerdfonts-v3: add an icon for EndevourOS (#1933)Roman Perepelitsa2023-04-021-0/+1
|
* display nix_shell if path contains /nix/store/* (#2246)Roman Perepelitsa2023-04-011-2/+4
|
* add an optional parameter to _p9k_upglob to pass glob qualifiers and use it ↵Roman Perepelitsa2023-01-301-39/+36
| | | | in most cases to restrict globbing to files/directories/links/etc (#2175)
* fix the default value of POWERLEVEL9K_VPN_IP_INTERFACEMehyar2023-01-281-1/+1
| | | | It was broken by #1730.
* fix a silly bug introduced in the last commit (#2170)Roman Perepelitsa2023-01-231-1/+1
|
* fix network interface detection on macos (#2170)Roman Perepelitsa2023-01-231-1/+1
| | | | This was broken in #2088.
* bust cachesRoman Perepelitsa2023-01-191-1/+1
|
* Add AWS partitions support to EKS kubernetes cluster namesZoltán Reegn2023-01-191-1/+1
| | | | | | | | | | The AWS ARN in govcloud and china looks different to the currently supported one: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-arns.html https://docs.amazonaws.cn/en_us/aws/latest/userguide/ARNs.html This change introduces support for all possible AWS partitions.
* don't trust P9K_SSH if it was set with a different TTY (#2154)v1.17.0Roman Perepelitsa2023-01-131-2/+3
|
* work around a bug in ohmyzsh (#2152)Roman Perepelitsa2023-01-111-1/+1
| | | | | | The bug was introduced here: https://github.com/ohmyzsh/ohmyzsh/commit/3dd83a22a160249a71631a51490fd3b89d1b3975 This causes Oh My Zsh to print \r to the terminal.
* Add lf segmentUtkarsh Verma2022-12-161-0/+12
|
* fix bugs in cpu_archRoman Perepelitsa2022-12-021-7/+13
|
* Use "machine" where available for CPU archClark S. Cox2022-12-021-1/+3
| | | | This allows shells on macOS to display more specific CPU arch (e.g. a 64-bit intel machine will display "x86_64" instead of "i386")
* assume that dotnet version may depend on the content of global.json (#2103)Roman Perepelitsa2022-11-271-2/+5
|
* Prefer `ip` over `ifconfig` for i/f detection.Jonathan Sambrook2022-11-141-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | `ifconfig`'s formatting doesn't cope well with long interface names. In these cases it will eat up the whitespace separating the name from the text "Link" in the output, which makes parsing the output problematic. e.g. `ifconfig`: wlp0s20f0u2Link encap:Ethernet HWaddr 00:AA:BB:CC:DD:EE v.s `ip`: 21: wlp0s20f0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc \ mq state UP group default qlen 1000 This commit swaps the order of detection inside `_p9k_prompt_net_iface_async()`, so that `ip` will be preferred. `ifconfig` is deprecated by distros in favour of `ip`, so this will often be an incredibly marginal performance boost :) NOTE: this commit does not address the problem with using `ifconfig`. I don't understand the zsh regex, so have not touched it.
* replace POWERLEVEL9K_CHRUBY_SHOW_ENGINE_IF_RUBY with ↵Roman Perepelitsa2022-11-021-7/+7
| | | | | | | | | | | | | | | | | POWERLEVEL9K_CHRUBY_SHOW_ENGINE_PATTERN (#2072) POWERLEVEL9K_CHRUBY_SHOW_ENGINE_PATTERN defines a pattern that RUBY_ENGINE should match for it to be shown. Matching is done with extended_glob. For example, to show all values of RUBY_ENGINE except "ruby": POWERLEVEL9K_CHRUBY_SHOW_ENGINE_PATTERN='^ruby' If POWERLEVEL9K_CHRUBY_SHOW_ENGINE_PATTERN is unset and POWERLEVEL9K_CHRUBY_SHOW_ENGINE is set to true, the behavior is the same as if POWERLEVEL9K_CHRUBY_SHOW_ENGINE_PATTERN was set to *.
* Add chruby config to hide RUBY_ENGINE when "ruby"Hartley McGuire2022-11-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the chruby segment looks like this for standard and non-standard ruby implementations respectively: ``` Ruby ruby 3.1.2 Ruby truffleruby 3.0.3 ``` While displaying the RUBY_ENGINE is helpful for non-standard implementations, showing it for "ruby" results in "Ruby ruby" which feels redundant. This commit adds a new configuration option to disable showing the RUBY_ENGINE when it is "ruby". Other values for RUBY_ENGINE will always display as before: ``` Ruby 3.1.2 Ruby truffleruby 3.0.3 ``` This also makes the formatting more similar to the asdf segment: ``` Ruby 3.1.2 Ruby truffleruby-22.3.0 ```
* rename arch to cpu_arch and rewrite it (#1752)Roman Perepelitsa2022-10-091-8/+16
|
* Merge branch 'master' of github.com:brent-moffit/powerlevel10k into ↵Roman Perepelitsa2022-10-081-0/+17
|\ | | | | | | brent-moffit-master
| * Add instant prompt for archbrent-moffit2022-02-141-0/+2
| |
| * Change arch prompt colors to better match default themesbrent-moffit2022-02-141-1/+1
| |
| * Add `arch` prompt for displaying CPU architecturebrent-moffit2022-02-031-0/+15
| | | | | | | | Adds the `arch` prompt to `p10k.zsh`, `ARCH_ICON` to `icons.zsh`, and commented entries in the default configs
* | fix bugs introduced in 843dcf016710a4fe39f8ad65da2929f9128436fdRoman Perepelitsa2022-10-051-5/+5
| |
* | survive broken FPATH (#10Roman Perepelitsa2022-10-021-9/+9
| |
* | Fix gcloud config directoryhayas12022-09-231-2/+2
| |
* | don't trust cnorm as it's incorrect in some combinations of terminals and ↵Roman Perepelitsa2022-07-211-2/+10
| | | | | | | | terminfo (#1699)
* | fix toolbox segment (#1916)Roman Perepelitsa2022-07-201-3/+4
| |
* | use HOST for distrobox detectionChristian Schulze2022-06-241-1/+1
| |
* | battery plugin: Support Linux on Librem5 phoneGerald Turner2022-06-181-2/+2
| |
* | cleanupRoman Perepelitsa2022-05-261-2/+2
| |
* | suppress `nounset` error if `DIRENV_DIR` isn’t defined (fix #1876)Lucas Larson2022-05-261-2/+2
| | | | | | | | Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
* | work around a bug in zsh 5.4.1 (#1872)Roman Perepelitsa2022-05-201-2/+2
| | | | | | | | | | | | | | | | Here's the bug: zsh -fc 'print "${#${x}}"' This code should print "0" but it prints "1" in zsh 5.4.1.
* | disable vscode integration; it doesn't work anyway but it makes shell slowerRoman Perepelitsa2022-04-041-0/+2
| | | | | | | | Context: https://github.com/microsoft/vscode/pull/145610#issuecomment-1076519194
* | ignore garbage printed by vscodeRoman Perepelitsa2022-03-201-0/+2
| |
* | bug fix: strip escape sequences in instant prompt output less aggressivelyRoman Perepelitsa2022-03-201-1/+1
| |
* | minor cleanup around perlbrewRoman Perepelitsa2022-02-281-4/+3
| |
* | chore: forgot to add global variables to mainLucas Burns2022-02-271-0/+2
| |
* | feature: added perlbrewLucas Burns2022-02-271-0/+20
| |
* | bug fix: correctly parse kubectl config when current-context has ↵Roman Perepelitsa2022-02-141-1/+1
|/ | | | metacharacters (#1767)
* fix shell integration with kittyv1.16.1kittyRoman Perepelitsa2022-02-011-0/+26
|
* survive broken $TMPDIRRoman Perepelitsa2022-01-261-4/+14
|
* don't set OS, DEFAULT_COLOR and DEFAULT_COLOR_INVERTEDRoman Perepelitsa2022-01-251-6/+1
| | | | See #1735.
* fix ZeroTier network interface regexRoman Perepelitsa2022-01-201-2/+2
| | | | | | | | From https://forwardingplane.net/configuration-archive/renaming-interfaces-under-linux/: > ZeroTier has the inconsistency of using zt* on some platforms and ztublkahlah on others. They mean zt[0-9]+ and zt[a-z0-9]+.
* Add ZeroTier to the list of VPNsMehyar2022-01-201-1/+1
| | | ZeroTier users can also see their VPN IP when enabling the vpn_ip option.
* work around bugs in WSL where it reports more swap being used than the total ↵Roman Perepelitsa2022-01-171-0/+2
| | | | available (#1724)
* respect VIRTUAL_ENV_PROMPT if its value is different from the default (#1718)Roman Perepelitsa2022-01-141-1/+5
|
* add an icon for amazon linux (#1706)Roman Perepelitsa2022-01-061-1/+2
|
* work around bugs in WSL where it /proc/pid/cwd reports an alias driveRoman Perepelitsa2022-01-041-1/+5
|