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

503 commits

Author SHA1 Message Date
Dominik Ritter
23e2a54067 Added a verbose mode. 2015-11-25 00:21:20 +01:00
Dominik Ritter
323610cebf More structure to the battery segment: Now there is a concept of "states" that a battery can have. That makes the code much clearer and users could adjust the colors of these states as they want. 2015-11-25 00:06:03 +01:00
Dominik Ritter
3437c7850c Battery icon is already defined in the icons-array. 2015-11-24 18:31:22 +01:00
Dominik Ritter
c8137fcf1a Pre-Grep the raw data to save some memory and to avoid cluttering up the output of setopt xtrace too much. 2015-11-24 18:17:04 +01:00
Dominik Ritter
dad38b0592 Better code structure. 2015-11-24 02:36:37 +01:00
Dominik Ritter
da2b8e342e Arithmetics in ZSH 101: If you want to calculate a percentage, multiply the numerator with 100 _before_ the devision. With that method there is no need for hacks to convert the numerator into a float. 2015-11-23 18:10:09 +01:00
Dominik Ritter
239aa29a12 Better use of test flags. 2015-11-23 00:48:59 +01:00
Dominik Ritter
8d72b5eb12 Renamed variable "conn" to "icon_color" 2015-11-23 00:42:15 +01:00
Dominik Ritter
b316089c6b Make use of set_default method for better code readability. 2015-11-23 00:12:52 +01:00
Dominik Ritter
c0efe9c342 Performance improvement: Avoid aggregation of data over and over again by extracting a local variable. 2015-11-23 00:11:19 +01:00
Dominik Ritter
7774294113 Performance improvement by calculating the battery percentage with zsh. 2015-11-23 00:09:37 +01:00
Ben Hilburn
1eadf5ad76 Merge pull request #152 from Tritlo/battery_fix
Battery segment fix and enhancement.
2015-11-20 16:29:40 -08:00
Ben Hilburn
951a4956fc Merge pull request #150 from Tritlo/prompt_end
Add icon for end of left prompt.
2015-11-20 16:23:20 -08:00
Matthías Páll Gissurarson
36fa3f2277 fix some issues with the battery segment 2015-11-20 12:13:10 +01:00
Matthías Páll Gissurarson
231cfda809 added icon to be able to set the end of the prompt explicitly 2015-11-19 01:04:52 +01:00
Ben Hilburn
e79a2ffff0 Merge pull request #149 from Tritlo/master
Now allowing the RPROMPT to be on a newline.
2015-11-18 10:54:21 -08:00
Ben Hilburn
b83cfd7515 Merge pull request #143 from dritter/segment_deprecation_helpers
Added segment deprecation helper
2015-11-17 12:54:06 -08:00
Ben Hilburn
85fd338d36 Merge pull request #144 from dritter/changelog_additions
Added the new rust segment and the changes to the rvm-segment to changelog
2015-11-17 12:52:46 -08:00
Matthías Páll Gissurarson
47eb8f10ac added variable to have rprompt on the newline 2015-11-17 20:37:59 +01:00
Dominik Ritter
f9957ca559 Used typeset to define the local array. This does the trick on linux. 2015-11-17 18:34:18 +01:00
Dominik Ritter
009b0e51a2 Added the new rust segment and the changes to the rvm-segment to changelog. 2015-11-17 01:41:44 +01:00
Dominik Ritter
ce7b99cdaf Added a mechanism to make deprecated segments visible to the user. 2015-11-17 01:39:49 +01:00
Ben Hilburn
9b067ea29c Merge pull request #142 from dritter/rust_version
Added Rust version segment.
2015-11-16 09:10:58 -08:00
Ben Hilburn
77c31e17d1 Merge pull request #141 from dritter/improve_rvm_performance
Huge performance improvement if you use `rvm` segment.
2015-11-16 09:04:48 -08:00
Dominik Ritter
37113bc120 Added documentation. 2015-11-15 23:53:10 +01:00
Dominik Ritter
c81863e234 Add an Identifier to version. 2015-11-15 23:46:17 +01:00
Dominik Ritter
5d314bec8e Add segment for rust version. 2015-11-15 23:46:17 +01:00
Dominik Ritter
643555a30c Huge performance improvement if you use rvm segment.
Thanks to @rjorgenson for the hint.
2015-11-15 23:35:15 +01:00
Ben Hilburn
0673352e7e Merge branch 'master' into next 2015-11-13 09:49:39 -08:00
Ben Hilburn
6d3899b6e3 Merge pull request #139 from sdupille/master
Get terminal capabilities using a zsh builtin for portability
2015-11-13 09:48:53 -08:00
Ben Hilburn
2e8f00342a Merge pull request #112 from dritter/color_detection
Moved many sub-functions out of main theme file. Also improved color detection.
2015-11-13 09:47:17 -08:00
Stéphane Dupille
81a4b3907d Get terminal capabilities using a zsh builtin for portability 2015-11-13 12:06:03 +01:00
Ben Hilburn
04319d3a95 Merge pull request #136 from dritter/hotfix/131-key-fixes
Issue #131: This fixes history-substring-search, home and end keys.
2015-11-12 09:58:23 -08:00
Dominik Ritter
eef5286005 Issue #131: This fixes history-substring-search, home and end keys. 2015-11-11 22:45:23 +01:00
Dominik Ritter
538d8b8fa8 Bugfix for prezto: In prezto the theme gets called by function (via zstyle). In that case we hardcode the path to the theme as there seems no way to find the location so that we can source our other functions. 2015-11-07 16:32:48 +01:00
Ben Hilburn
0ff3b3660e Merge pull request #134 from dritter/changelog_added
Adding a CHANGELOG
2015-11-04 11:13:31 -08:00
Dominik Ritter
3afbd5e994 Added a CHANGELOG. 2015-11-04 19:53:56 +01:00
Dominik Ritter
29693f957d If the theme-file is linked, dereference that link and source the right functions. 2015-11-04 00:40:11 +01:00
Dominik Ritter
0fa635275c Extracted color functions to a separate file. 2015-10-24 01:05:37 +02:00
Dominik Ritter
2b8cb5b9a4 Extracted VCS-hooks into a separate file. 2015-10-24 00:05:15 +02:00
Dominik Ritter
d6584e13da Extracted icons into a separate file. 2015-10-23 23:42:59 +02:00
Dominik Ritter
fbd1b99bab Renamed "power-utilities.zsh" to just "utilities.zsh". 2015-10-23 23:39:50 +02:00
Dominik Ritter
23f86afeb3 Merge branch 'next' into color_detection 2015-10-22 10:10:15 +02:00
Ben Hilburn
e8771a7039 Merge branch 'master' into next 2015-10-21 16:59:59 -07:00
Ben Hilburn
b2e6beec51 Merge pull request #123 from martinpelikan/master
Fixes #122, SI prefixes should be evaluated as strings.
2015-10-21 16:54:10 -07:00
Ben Hilburn
84681d4cc1 Merge pull request #126 from rjorgenson/next
added a prompt segment to display battery status on laptops
2015-10-21 16:53:32 -07:00
Ben Hilburn
981c85af39 Merge pull request #127 from dritter/go_prompt
Adding Go version segment.
2015-10-21 16:51:44 -07:00
Ben Hilburn
43d8b34a21 Merge pull request #128 from DanielGGordon/master
Rephrasing of error message when TERM not 256 color
2015-10-21 16:50:38 -07:00
Ben Hilburn
15670379ed Merge pull request #129 from dritter/ram_prompt
Breaking RAM and Swap out of load segment into their own segment.
2015-10-21 16:50:03 -07:00
Dominik Ritter
09bd1f6182 Added documentation. 2015-10-20 00:37:17 +02:00