diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-01-22 05:56:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-22 05:56:27 +0300 |
commit | 92b1b6235af2f63dcdac5805d1f928ef5a726938 (patch) | |
tree | a435ef43aa1005da4a78ae5e735509f59e40ec07 /README.md | |
parent | 9ead1c15480249b082bf93c59540f4a09fa44c8d (diff) | |
parent | 81e9fef9e9ed95499c572415eaa78b343746068f (diff) |
Merge pull request #378 from bhilburn/anion155-hdd-segment
Adding new disk_usage segment, based on Anion155's hdd_usage
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -88,6 +88,7 @@ The segments that are currently available are: * [`battery`](#battery) - Current battery status. * [`context`](#context) - Your username and host. * [`dir`](#dir) - Your current working directory. +* [`disk_usage`](#disk_usage) - Disk usage of your current partition. * `history` - The command number for the current line. * [`ip`](#ip) - Shows the current IP address. * [`public_ip`](#public_ip) - Shows your public IP address. @@ -306,6 +307,16 @@ If you want to customize the directory separator, you could set: POWERLEVEL9K_DIR_PATH_SEPARATOR="%f "$'\uE0B1'" %F" ``` +##### disk_usage + +The `disk_usage` segment will show the usage level of the partition that your current working directory resides in. It can be configured with the following variables. + +| Variable | Default Value | Description | +|----------|---------------|-------------| +|POWERLEVEL9K_DISK_USAGE_ONLY_WARNING|false|Hide the segment except when usage levels have hit warning or critical levels.| +|POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL|90|The usage level that triggers a warning state.| +|POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL|95|The usage level that triggers a critical state.| + ##### ip This segment tries to examine all currently used network interfaces and prints |