summaryrefslogtreecommitdiff
path: root/functions
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix_colors' into prepare_066Dominik Ritter2018-08-081-322/+297
|\
| * Write comparison with double quotesDominik Ritter2018-08-081-1/+1
| |
| * Pad colors with zeroesDominik Ritter2018-08-081-1/+2
| |
| * Always use color codes instead of named colorsDominik Ritter2018-08-081-34/+25
| | | | | | | | | | | | 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.
| * Fix bright colorsDominik Ritter2018-08-081-6/+0
| | | | | | | | | | | | 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 0e37d8ef865daddd6af02ba78b4a3bb86fd5917e.
| * Make colors a global arrayDominik Ritter2018-08-071-265/+267
| | | | | | | | That way it must not be defined in every function call.
| * Write comparisons with double equalsDominik Ritter2018-08-071-1/+1
| |
| * Fix bright colorsDominik Ritter2018-08-071-6/+2
| | | | | | | | | | | | 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 0e37d8ef865daddd6af02ba78b4a3bb86fd5917e.
| * Make purpose clear of backgroundColor and foregroundColor functionsDominik Ritter2018-08-071-12/+4
| | | | | | | | | | The functions just start the colors, they do not end them. It seems too much to have a function that terminates a color.
* | Merge branch 'fix_colors' into prepare_066Dominik Ritter2018-08-061-0/+2
|\|
| * Add missing colors to fix color comparisonDominik Ritter2018-07-241-0/+2
| | | | | | | | | | Added magenta and cyan that were only present with their alternative names (fuchsia and aqua). See https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme
* | Test more readableYthildir2018-07-221-1/+1
| |
* | Resolve #918 Transparent backgroundYthildir2018-07-211-0/+4
|/ | | | | Now function getColorCode consider value 'none' like a good value. When it's use to set background the segment become transparent
* Replace `typeset` check with shellvar flagBen Klein2018-07-121-3/+1
| | | | More performance without changing functionality.
* Fix os detection for MSYS2blackb1rd2018-06-301-1/+1
|
* Use cog glyph on all modesDominik Ritter2018-06-171-4/+4
|
* Add a Laravel version segmentDominik Ritter2018-06-071-0/+5
|
* Merge remote-tracking branch 'Maxattax97/next' into staging_065Dominik Ritter2018-06-071-18/+18
|\
| * Fix Linux distribution detectionMax O'Cull2018-05-191-18/+18
| |
* | Merge remote-tracking branch 'sambadevi/feature/etc-option-in-dir-segment' ↵Dominik Ritter2018-06-071-0/+5
|\ \ | | | | | | | | | into staging_065
| * | add cog symbol to dir segment if folder is /etc*Tim Otlik2018-05-171-0/+5
| |/
* | Merge remote-tracking branch 'chhschou/master' into staging_065Dominik Ritter2018-06-071-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Conflicts were: - powerlevel9k.zsh-theme and test/segments/rust_version.spec: rust_version Segment changed (#641) on master and colors got names (#703) on next.
| * | #632: Indicate `Rust` or `(rust)` for rust_version segment only if icon is ↵Chris Chou2017-10-051-2/+2
| | | | | | | | | | | | unavailable
* | | Merge remote-tracking branch 'VanRoy/master' into staging_065Dominik Ritter2018-06-071-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts were: - functions/icons.zsh: The Java Segment was added on master, but on next were added various Segments with icons in the meantime. - powerlevel9k.zsh-theme: Java Segment was added on master, Dropbox Segment was added on next.
| * | | Added a segment that shows the Java version.Julien Roy2018-03-241-0/+4
| | | |
* | | | Merge remote-tracking branch 'floor114/next' into staging_065Dominik Ritter2018-06-071-0/+15
|\ \ \ \
| * | | | Add vcs branch name truncating.Taras Shpachenko2018-04-121-0/+15
| | | | |
* | | | | Merge remote-tracking branch 'guicassolato/fix-wrapper-slowness' into ↵Dominik Ritter2018-06-071-15/+15
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | staging_065 Conflicts were: - functions/vcs.zsh: Two commits avoided wrapper behaviour. #685 in grep, #797 in git.
| * | | | Fixes wrapper slowness in vcs segmentGuilherme Cassolato2018-04-111-15/+15
| | |_|/ | |/| |
* | | | Merge pull request #791 from dritter/local_variablesBen Hilburn2018-04-142-3/+4
|\ \ \ \ | |_|/ / |/| | | Make variables local
| * | | Make variables localDominik Ritter2018-03-272-3/+4
| | | |
* | | | add compatible to the list of fontconfigsTim Otlik2018-03-201-0/+5
| | | |
* | | | fixed missing icons for other fontconfigsTim Otlik2018-03-201-0/+15
| | | |
* | | | update icons for nerd-fonts 2.0.0Tim Otlik2018-03-202-14/+34
|/ / /
* | | **LARGE MERGE THAT TOUCHES LOTS OF THINGS.**Ben Hilburn2018-03-071-0/+76
|\ \ \ | | | | | | | | | | | | | | | | From this point until the next tagged release, `next` will be in a state of heavy flux as we make some significant and invasive changes.
| * \ \ Merge branch 'dir_strategies' of ↵Ben Hilburn2018-03-071-0/+76
| |\ \ \ | | | | | | | | | | | | | | | https://github.com/onaforeignshore/powerlevel9k into onaforeignshore-dir_strategies
| | * | | Fixed silly coding errorChristo Kotze2018-02-221-5/+3
| | | | | | | | | | | | | | | | | | | | Did `local 3=...` instead of `3=...`
| | * | | Update for TravisChristo Kotze2018-02-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While zsh accepts the following code: ``` local paths=(${(s:/:)${1//"~\/"/}}) ``` Travis fails unless it is ``` local paths=$1 paths=(${(s:/:)${paths//"~\/"/}}) ```
| | * | | Updated truncatePath()Christo Kotze2018-02-221-6/+7
| | | | | | | | | | | | | | | | | | | | Added variable `delim_len` with test when delim=""
| | * | | Another Travis testChristo Kotze2018-02-201-1/+2
| | | | |
| | * | | Another change to test TravisChristo Kotze2018-02-191-3/+3
| | | | |
| | * | | Changed path splitting to test TravisChristo Kotze2018-02-191-3/+3
| | | | |
| | * | | Updated path splitting lineChristo Kotze2018-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | Works in the console, but Travis doesn't like it.
| | * | | Added truncatePath to utilities.zshChristo Kotze2018-02-191-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added `function truncatePath()` to utilities.zsh to take care of truncation. This is pure zsh code, without calls to `sed`. Parameters are: * $1 Path: string - the directory path to be truncated * $2 Length: integer - length to truncate to * $3 Delimiter: string - the delimiter to use * $4 From: string - "right" | "middle". If omited, assumes right. Cleaned up code to use the new function instead.
* | | | | Merge pull request #729 from Mikewl/usersudoBen Hilburn2018-03-071-0/+5
|\ \ \ \ \ | | | | | | | | | | | | Added sudo state to prompt_user
| * | | | | add new icons and add remote_sudoMichael Louwrens2018-02-121-1/+4
| | | | | |
| * | | | | try out sudo icon changesMichael Louwrens2018-02-101-0/+2
| | |/ / / | |/| | |
* | | | | Merge pull request #758 from sambadevi/nextBen Hilburn2018-03-074-2/+112
|\ \ \ \ \ | |_|/ / / |/| | | | Add icons for more distros in os_icon segment
| * | | | fix $OS variable for battery segmentTim Otlik2018-02-191-13/+1
| | | | |
| * | | | arch icon was missingTim Otlik2018-02-161-0/+4
| | | | |