Commit graph

327 commits

Author SHA1 Message Date
Ben Hilburn
df153db93b Merge pull request #157 from dritter/battery_rework
Performance improvement of battery segment
2015-12-12 16:21:14 -08:00
Dominik Ritter
0dc36ee614 We need to always evaluate the path for the home/folder icon mechanism to work correctly. 2015-11-28 11:11:10 +01:00
Dominik Ritter
c10bac90ba In Awesome-Mode either print a home-icon or a folder icon, depending in which directory the user is. 2015-11-28 00:03:07 +01:00
Ben Hilburn
3fea92369f Merge pull request #153 from Tritlo/custom_string
Adding a segment that can execute a custom command.
2015-11-24 15:27:07 -08:00
Dominik Ritter
b8d7d1387e By default: set verbose mode on. 2015-11-25 00:26:10 +01:00
Ben Hilburn
08a3b49d73 Merge pull request #155 from dritter/hotfix/go_version_fix
Fix for the GO segment.
2015-11-24 15:23:03 -08:00
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
Dominik Ritter
4b636d226e Renamed variable. 2015-11-22 00:08:43 +01:00
Dominik Ritter
49a3a3e750 The nvm segment should use the standard node icon (rather than defining an own icon). 2015-11-22 00:04:55 +01:00
Dominik Ritter
351dc84320 Fix for the GO version. 2015-11-21 23:20:38 +01:00
Matthías Páll Gissurarson
df51db1412 added a segment to be able to display the result of a custom command. 2015-11-21 23:11:34 +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
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
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
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
Stéphane Dupille
81a4b3907d Get terminal capabilities using a zsh builtin for portability 2015-11-13 12:06:03 +01: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
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
Dominik Ritter
d13d9565bc Merge branch 'next' into ram_prompt 2015-10-20 00:25:16 +02:00
Daniel Gordon
fa85a5158f Rephrasing of error message when TERM not 256 color
- Literal command to be added is highlighted in blue
    - Now beginners won't try to add an incorrect command to ~/.zshrc
2015-10-19 13:02:24 -05:00
Dominik Ritter
e94394bc67 Merge branch 'next' into go_prompt 2015-10-19 17:39:43 +02:00