1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-24 13:10:07 +00:00
Commit graph

4210 commits

Author SHA1 Message Date
Alex Jurkiewicz
f2772bd56f virtualenv: Handle not being in a virtualenv
Pre-Poetry support, we only entered this codepath when we were inside a
virtualenv. Now we enter it for every directory, but we don't want to
display an empty segment for non-virtualenv locations.
2023-10-12 14:38:08 +08:00
Alex Jurkiewicz
7e835be2d8 Correct caching for pyproject.toml 2023-10-12 14:37:53 +08:00
Alex Jurkiewicz
893e130bd1 Fix POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=if-different (I think)
We were comparing virtualenv's name to pyenv's version, which would
never be the same.

Now this setting works as intended, although I'm not sure how useful it
is. It's probably more useful to reorder this logic so virtualenv has
precedence.
2023-10-12 14:14:33 +08:00
Alex Jurkiewicz
fe9b9f9c3e Fix cleanup of generic virtualenv names 2023-10-12 14:10:08 +08:00
Alex Jurkiewicz
86088963ce Improve function names
Make them a little less ambiguous.
2023-10-12 13:54:30 +08:00
Alex Jurkiewicz
414c330581 fixup! Fix up function return value passing 2023-10-12 13:53:19 +08:00
Alex Jurkiewicz
c10e62ad29 Try to cache poetry command 2023-10-12 13:51:42 +08:00
Alex Jurkiewicz
db4b650feb cosmetics 2023-10-12 13:51:38 +08:00
Alex Jurkiewicz
e162e2a891 Fix up function return value passing
Don't use echo, instead set a variable which the calling function
checks. This is the standard in p10, presumably because it's faster..?
2023-10-12 13:50:45 +08:00
Alex Jurkiewicz
a79a934f27 Remove POWERLEVEL9K_VIRTUALENV_ENABLE_POETRY
Added for debugging purposes.
2023-10-12 13:49:13 +08:00
Alex Jurkiewicz
e3e5605a61 Add Poetry support to virtualenv
Heavily based on #1994.

Integrate Poetry virtualenv detection into the existing virtualenv
segment. For poetry virtualenvs, use the package name as reported by
`poetry version`.
2023-10-12 13:33:59 +08:00
Alex Jurkiewicz
ffc1f175c2 Document some logic in prompt_virtualenv() 2023-10-12 11:28:10 +08:00
Roman Perepelitsa
862440ae11 add an icon for azure to vcs (#2447) 2023-10-09 10:17:06 +02:00
Roman Perepelitsa
873c4ff09c fix the path to powerlevel10k when installing with homebrew (#2429) 2023-09-09 11:41:14 +02:00
Roman Perepelitsa
215b20e087 bump version 2023-09-08 12:16:35 +02:00
Jussi Timperi
be4c68fd0a
add Guix System icon (#2424) 2023-09-08 03:11:37 -07:00
Roman Perepelitsa
f8595a35bf use powerlevel10k from homebrew/core when installing with brew 2023-09-07 13:58:08 +02:00
Nanda Lopes
011b8469ab
typo: s/.tool-version/.tool-versions/ in all configs 2023-08-27 06:42:57 -07:00
Roman Perepelitsa
f04ce05d92 Merge commit 'd8041e4700ace779aaf42e19c3de2d25a14dbae8' 2023-08-15 10:30:02 +02:00
Roman Perepelitsa
d8041e4700 Squashed 'gitstatus/' changes from bdaad2e8d..38d35b959
38d35b959 cleanup
7e7b5e807 bash prompt: set PROMPT_COMMAND in a nicer and more robust manner (#403)
7ee9227de Merge branch 'samiam-append_prompt'
198ed58ce Revert "Update README to append to PROMPT_COMMAND"
8b6a229fa Switch to using var assignment for backward compatibility
693f9efa0 Update README to append to PROMPT_COMMAND
a48175ce1 Append to PROMPT_COMMAND to play nice with other prompt programs

git-subtree-dir: gitstatus
git-subtree-split: 38d35b95926e09d07b8cf78edade7cee7a9a1dcf
2023-08-15 10:30:02 +02:00
Roman Perepelitsa
69d726d9fb Merge commit '9401ed17c0a8c3d1654214a204b8d5b5f7ccf386' 2023-08-10 11:48:54 +02:00
Roman Perepelitsa
9401ed17c0 Squashed 'gitstatus/' changes from abb4f6a52..bdaad2e8d
bdaad2e8d Makefile: remove the explicit check for the existence of $(CXX)
6d32e0272 Merge branch 'criadoperez-fix/makefile'
c0e3c250e improved Makefile

git-subtree-dir: gitstatus
git-subtree-split: bdaad2e8d0e6e2f9928e067c85de8096b87e21fa
2023-08-10 11:48:54 +02:00
Roman Perepelitsa
2d9c1f271b Merge commit '22cb2f79ddb89a368dd823e815fa1b0587ff1b6a' 2023-08-10 09:32:33 +02:00
Roman Perepelitsa
22cb2f79dd Squashed 'gitstatus/' changes from 4b47ca047..abb4f6a52
abb4f6a52 fix typos in docs and comments
958ae4e6d docs: explicitly mention that core.fsmonitor was disable in git benchmarks (#370)

git-subtree-dir: gitstatus
git-subtree-split: abb4f6a5225d12f51ffd8196060804b0c770482e
2023-08-10 09:32:33 +02:00
Alejandro Criado-Pérez
717f9a1881
fix typos in docs and comments 2023-08-10 00:31:37 -07:00
Roman Perepelitsa
f851f41fc1 remove MULTIBYTE requirement from the configuration wizard (#2397) 2023-07-29 17:01:40 +02:00
Roman Perepelitsa
9bb15e9ffb docs: rephrase "Git status looks incorrect" section 2023-07-26 19:24:52 +02:00
Roman Perepelitsa
ef401ad02a Merge branch 'fzakaria-skip-hash' 2023-07-26 19:12:18 +02:00
Farid Zakaria
a8fa0e2a1b Add documentation explaining lack of support for skipHash
libgit2 does not support skipHash which causes the prompt to be
incorrect for repos that have it toggled.

Add the documentation for this gap.

fixes #2387
2023-07-26 17:08:46 +00:00
Roman Perepelitsa
68104494a7 bump version + cleanup (#2391) 2023-07-25 21:42:48 +02:00
Roman Perepelitsa
baf03bf48e Merge branch 'mgkurtz-mgk/rocky' 2023-07-25 21:40:10 +02:00
Markus Kurtz
367c667de6 Add rocky icon to wizard 2023-07-25 21:36:13 +02:00
Markus Kurtz
12aa3fa3c4 Add rocky icon 2023-07-25 20:50:59 +02:00
Roman Perepelitsa
7e9a79f3f1 new segment: per_directory_history (#2384) 2023-07-25 13:25:19 +02:00
Roman Perepelitsa
1d96f5e066 unquote ID in /etc/os-release (#2388) 2023-07-25 07:55:26 +02:00
Roman Perepelitsa
e8aa8cce7f unquote ID in /etc/os-release (#2388) 2023-07-25 07:54:38 +02:00
Roman Perepelitsa
646bae0dd6 docs: Terminus is now called Tabby 2023-07-21 22:48:11 +02:00
Roman Perepelitsa
4cc0ea0081 Merge branch 'hugivar-master' 2023-07-21 22:46:13 +02:00
hugo
2453fd27e2
Update README.md as Terminus is now known as Tabby 2023-07-21 16:18:24 -04:00
Roman Perepelitsa
932954a8b1 do not display an indicator when a git branch is up to date with a remote
https://github.com/romkatv/powerlevel10k/issues/2361 requested an indicator for
up to date branches, which was added in
20323d6f8c.

Since then, 3 users complained about the new indicator:

- https://github.com/romkatv/powerlevel10k/issues/2377
- https://github.com/romkatv/powerlevel10k/issues/2380
- https://github.com/romkatv/powerlevel10k/issues/2361#issuecomment-1630731045

On one hand we have one request to add a feature. On the other hand we have
three complaints about the feature's existence. The feature is going away.
2023-07-12 15:01:32 +02:00
Roman Perepelitsa
93d97b7eba better comments 2023-07-11 11:11:21 +02:00
Roman Perepelitsa
078497570f clean up the handling of POWERLEVEL9K_AZURE_CLASSES and put it in all configs (#2379)
This reverts commit 343d4f44e5, reversing
changes made to 4dca4bdfbb.
2023-07-11 11:08:18 +02:00
Roman Perepelitsa
343d4f44e5 Merge branch 'benm-stm-bug/sub-patterns-colors-for-azure' 2023-07-11 10:52:17 +02:00
BEN MANSOUR Mohamed Rafik
0c28fec137 fix pattern coloration for azure defined classes 2023-07-10 22:07:28 +02:00
Roman Perepelitsa
4dca4bdfbb bug fix: honor POWERLEVEL9K_LEFT_SEGMENT_END_SEPARATOR in instant prompt (#2376) 2023-07-09 09:42:35 +02:00
Roman Perepelitsa
20323d6f8c display = in git status if up to date with the remote (#2361) 2023-06-26 10:33:21 +02:00
Roman Perepelitsa
017395a266 release v1.19.0 2023-06-23 07:44:27 +02:00
Koen van Zuijlen
ab8bac01e2
Add sparkctl to POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND (#2346) 2023-06-17 01:46:55 -07:00
Roman Perepelitsa
360dcd3907 respect XDG_DATA_HOME when looking for the timewarrior data directory (#2344)
The logic for finding the data directory is as follows:

1. Find the root directory:
  1.1 If TIMEWARRIORDB is set, use that.
  1.2 Else if ~/.timewarrior is an existing directory, use that.
  1.3 Else if XDG_DATA_HOME is set, use $XDG_DATA_HOME/timewarrior.
  1.4 Else use ~/.local/share/timewarrior.
2. Append "/data" to the root directory.
2023-06-15 08:48:43 +02:00
Roman Perepelitsa
944f52fc43 move chezmoi_shell in the docs closer to other shell indicator segments 2023-06-11 09:09:24 +02:00