aboutsummaryrefslogtreecommitdiff
path: root/functions/utilities.zsh
Commit message (Collapse)AuthorAgeFilesLines
* inline colors.zsh, utilities.zsh and vcs.zshromkatv2019-07-241-137/+0
|
* rename all internal varsromkatv2019-07-241-1/+1
|
* continue param refactoringromkatv2019-07-231-4/+2
|
* start massive refactoring of config paramsromkatv2019-07-231-56/+53
|
* ignore COLUMNS in _p9k_prompt_lengthromkatv2019-06-091-0/+1
|
* optimize _p9k_g_expand a littleromkatv2019-05-271-1/+4
|
* add _p9k_prompt_lengthromkatv2019-05-271-0/+23
|
* fix a typoromkatv2019-05-231-1/+1
|
* speed up ip, vpn_ip and public_ip promptsromkatv2019-05-231-32/+19
|
* speed up ram and swap promptsromkatv2019-05-221-26/+10
|
* append POWERLEVEL9K_SHORTEN_DELIMITER when shortening with ↵romkatv2019-05-191-0/+2
| | | | truncate_to_unique; use * as default in this case
* support dynamic directories in dir prompt and fix a dozen bugsromkatv2019-05-191-92/+0
|
* replace all -v checks with equivalents (trying to port to zsh 5.2)romkatv2019-04-301-1/+1
|
* protect set_default from user-defined optionsromkatv2019-04-221-0/+1
|
* check for joined segments when figuring out whether vcs is enabled; fixes #41romkatv2019-03-261-2/+4
|
* expand string parameters with (g::) where appropriateromkatv2019-03-181-0/+12
|
* don't read configuration options until the first precmd; plus massive ↵romkatv2019-03-131-233/+22
| | | | refactoring and cleanup
* Strip all newlines from ifconfig outputDominik Ritter2019-02-221-1/+1
|
* Fix regexDominik Ritter2019-02-221-1/+1
|
* Interface States can be unsortedDominik Ritter2019-02-211-3/+7
|
* Avoid loopback interfaces and parse IPv4 on OSXDominik Ritter2019-02-061-1/+4
|
* Fix regular expression and testDominik Ritter2019-02-041-1/+1
|
* Merge remote-tracking branch 'ben/master' into HEADDominik Ritter2019-02-031-1/+3
|\
| * Avoid externals when parsing the os release on linuxDominik Ritter2019-01-241-1/+1
| |
| * Fix for #974Paul Gierz2018-09-071-1/+3
| |
* | Parse IPs properlyDominik Ritter2019-02-031-0/+48
|/ | | | | | | 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.
* 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
|
* Fix Linux distribution detectionMax O'Cull2018-05-191-18/+18
|
* Merge pull request #791 from dritter/local_variablesBen Hilburn2018-04-141-0/+1
|\ | | | | Make variables local
| * Make variables localDominik Ritter2018-03-271-0/+1
| |
* | update icons for nerd-fonts 2.0.0Tim Otlik2018-03-201-0/+15
|/
* **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.
| * 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.
* | fix $OS variable for battery segmentTim Otlik2018-02-191-13/+1
| |
* | add check of /etc/os-release for linux distrosTim Otlik2018-02-161-13/+54
| |
* | added LINUX_*_ICON for several OSTim Otlik2018-02-161-0/+16
|/
* Merge branch 'master' into nextBen Hilburn2017-08-121-1/+1
|\
| * Fix empty delimiterDominik Ritter2017-07-121-1/+1
| | | | | | | | | | Even if the delimiter is empty, the min length should be 1. This fixes #558
* | Icons for Windows/Cygwin + Refixes 32-bit supportguixxx2017-05-071-0/+4
|/
* Converting timer start time to hexBen Hilburn2017-04-191-1/+1
|
* Improve logicguixxx2017-04-191-9/+8
|
* Adds Android icon/battery plugin supportguixxx2017-04-191-0/+9
| | | | Plus fixes bhilburn/powerlevel9k#479, which was causing integer overflow on 32-bit CPUs