1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-18 02:30:07 +00:00
Commit graph

248 commits

Author SHA1 Message Date
romkatv
7cfe479c87 support dynamic directories in dir prompt and fix a dozen bugs 2019-05-18 23:50:06 +02:00
romkatv
f5c2bf1669 force icon initialization if print_icon is called manually 2019-05-08 23:45:52 +02:00
romkatv
361eec6f95 replace all -v checks with equivalents (trying to port to zsh 5.2) 2019-04-30 12:51:34 +02:00
romkatv
0e0132e8fa protect set_default from user-defined options 2019-04-22 17:06:41 +02:00
Ming Aldrich-Gan
91b2526c02 Add LINUX_RASPBIAN_ICON (Raspberry Pi icon) as an OS_ICON candidate 2019-04-05 11:35:01 -04:00
Sam Miller
2801642436 Add VCS_LOADING_ICON to the icons map 2019-04-01 18:14:52 -07:00
romkatv
5bd80d88f1 check for joined segments when figuring out whether vcs is enabled; fixes #41 2019-03-26 15:29:31 +01:00
romkatv
85e9f4955b expand string parameters with (g::) where appropriate 2019-03-18 17:24:56 +01:00
romkatv
2d877f95fd fix POWERLEVEL9K_SHORTEN_DELIMITER 2019-03-14 08:23:19 +01:00
romkatv
5ee0054298 don't read configuration options until the first precmd; plus massive refactoring and cleanup 2019-03-13 17:04:27 +01:00
Dominik Ritter
613b798bb3
Merge pull request #1126 from Shini31/master
Use ip command for VPN segment - fix #1125
2019-02-26 00:07:51 +01:00
Dominik Ritter
1049bca473 Strip all newlines from ifconfig output 2019-02-22 18:16:33 +01:00
Dominik Ritter
fef639eb48 Fix regex 2019-02-22 18:16:15 +01:00
Dominik Ritter
1ab6a32c4b Interface States can be unsorted 2019-02-21 18:37:35 +01:00
🐈
d1fbc1b889
Hide errors from git ls-files 2019-02-06 11:51:41 +02:00
Dominik Ritter
9f9bc62dc9 Avoid loopback interfaces and parse IPv4 on OSX 2019-02-06 08:53:46 +01:00
Dominik Ritter
a00cb84da4 Fix regular expression and test 2019-02-04 15:40:31 +01:00
Dominik Ritter
06151eeba9 Merge remote-tracking branch 'ben/master' into HEAD 2019-02-03 19:52:29 +01:00
Dominik Ritter
40e04e053c Parse IPs properly
This is done if we want to show a public IP, internal IP, or a VPN.
In the VPN case, what we actually want is to display an indicator
that a VPN is active, instead of the VPN IP itself. We parse the
IP here anyway, because we want to save some specific code there.
2019-02-03 19:20:14 +01:00
Dominik Ritter
6ccdfdf37e
Merge pull request #981 from pgierz/os_release_fix
[Bugfix] Fix for #974
2019-01-23 23:52:37 +01:00
Dominik Ritter
938b0d49a1 Avoid externals when parsing the os release on linux 2019-01-23 23:11:01 +01:00
Matthew Judy
574ee6dc1c Port #1071 to master (fatal errors emitted by untracked file check in vcs.zsh) 2018-11-17 17:13:25 -05:00
Dominik Ritter
724781e896
Merge pull request #1065 from dritter/protect_locale
Protect locale
2018-11-17 01:39:38 +01:00
Dominik Ritter
fd660f4b92 Fix checking for untracked files
Now the untracked files are always checked from
the root folder of the repo.
2018-11-12 00:24:29 +01:00
Dominik Ritter
a6e60def4b Fix stashes display
Changing directories while checking for untracked files broke
the display of git stashes. The hook was not called any more.
This is why we disabled checking for untracked files within a
.git folder.
2018-11-12 00:15:52 +01:00
Dominik Ritter
645b974677 Fix error if user cds into a .git directory
In this case is was previously not possible to get the untracked
status. Now we temporarily change the directory to the repo root
folder and then get the list of untracked files.
2018-11-12 00:13:35 +01:00
Dominik Ritter
a90258a9ee Avoid warning when inside of .git dir
We cannot detect untracked files when we are inside of
a .git directory.
2018-11-11 23:17:33 +01:00
Dominik Ritter
3256258ebf Count stashes via ZSH 2018-11-11 23:16:44 +01:00
Dominik Ritter
2038e2650c Avoid aliases 2018-11-06 01:12:19 +01:00
Dominik Ritter
48f0cc11ef Get rid of externals when truncating branch name 2018-11-06 01:11:31 +01:00
Dominik Ritter
3d960a5169 Protect users locale 2018-11-05 02:19:06 +01:00
Dominik Ritter
c3f9d04354 When checking for untracked or modified files, take submodules into account 2018-11-03 03:23:23 +01:00
Dominik Ritter
44b4b66925 Speedup VCS segment
Now the untracked files are detected via `git ls-files`, which is
much faster than `git status`. Additionally, we flipped the default
for checking submodules. They are now NOT checked by default, as most
users probably do not use git submodules.
2018-11-03 03:21:47 +01:00
Dominik Ritter
d07507c1eb Make use of git dir determined by VCS_INFO subsystem
instead of determine the git dir manually.
2018-11-03 03:11:51 +01:00
Dominik Ritter
9a67ca5bc3 Get branch name from VCS_INFO subsystem when collecting remote branch 2018-11-03 03:10:53 +01:00
Dominik Ritter
fea5f616d1 Get branch name from VCS_INFO subsystem when collecting ahead/behind info 2018-11-03 03:08:32 +01:00
Dominik Ritter
cd0ad84b01 Get rid of wc dependency when showing ahead/behind info 2018-11-03 03:06:49 +01:00
Paul Gierz
735994f82e Fix for #974 2018-09-07 11:52:21 +02:00
Dominik Ritter
8e966e3636 Change bright colors to old color codes
Before this, there was no difference in that colors, as we always used
the bright color codes.
2018-08-17 18:52:23 +02:00
Dominik Ritter
6e78f7e793 Merge remote-tracking branch 'eloo/master' into prepare_066 2018-08-12 00:02:23 +02:00
Joseph Weigl
34bf8edc89
Add fallback icon for linux distros 2018-08-11 16:18:23 +02:00
Dominik Ritter
c7e543ff23 Merge branch 'fix_colors' into prepare_066 2018-08-08 02:03:03 +02:00
Dominik Ritter
424d41761d Write comparison with double quotes 2018-08-08 01:11:44 +02:00
Dominik Ritter
39fe5217c6 Pad colors with zeroes 2018-08-08 01:00:43 +02:00
Dominik Ritter
19235b2359 Always use color codes instead of named colors
This Code was to check if the color is supported by the Terminal
Emulator. This is not necessary, if we always use the numerical code.
This makes the code much clearer.
2018-08-08 00:40:41 +02:00
Dominik Ritter
beacb0ad35 Fix bright colors
Remove old code that set bright colors equal to normal colors. This code
was ancient and led to bright colors being unusable. The code originates
from 0e37d8ef86.
2018-08-08 00:40:05 +02:00
Dominik Ritter
0acede2fdc Make colors a global array
That way it must not be defined in every function call.
2018-08-07 21:36:49 +02:00
Dominik Ritter
eadbd09368 Write comparisons with double equals 2018-08-07 21:35:29 +02:00
Dominik Ritter
9cf76f99a5 Fix bright colors
Remove old code that set bright colors equal to normal colors. This code
was ancient and led to bright colors being unusable. The code originates
from 0e37d8ef86.
2018-08-07 21:33:09 +02:00
Dominik Ritter
ebbdb3c1c0 Make purpose clear of backgroundColor and foregroundColor functions
The functions just start the colors, they do not end them. It seems
too much to have a function that terminates a color.
2018-08-07 21:21:15 +02:00