diff options
author | rjorgenson <rjorgenson@gmail.com> | 2017-01-10 00:42:29 +0300 |
---|---|---|
committer | rjorgenson <rjorgenson@gmail.com> | 2017-01-10 00:42:29 +0300 |
commit | ceb5c4ec32483d845b470d2ddb9395907616e825 (patch) | |
tree | 6703c40f22109436a207b51350edcb5fc037ba5a /README.md | |
parent | 20a5556642c4cca23d4b65e05fa64999c492a13d (diff) | |
parent | 1b838241fb5fe6628a00acae7d154c51615b6458 (diff) |
Merge branch 'public_ip_segment' of github.com:rjorgenson/powerlevel9k into public_ip_segment
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -240,9 +240,17 @@ it, but only display it if you are not your normal user or on a remote host To use this feature, make sure the `context` segment is enabled in your prompt elements (it is by default), and define a `DEFAULT_USER` in your `~/.zshrc`: +You can set the `POWERLEVEL9K_CONTEXT_HOST_DEPTH` variable to change how the +hostname is displayed. See (ZSH Manual)[http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Login-information] +for details. Default is set to %m which will show the hostname up to the first ‘.’ +You can set it to %{N}m where N is an integer to show that many segments of system +hostname. Setting N to a negative integer will show that many segments from the +end of the hostname. + | Variable | Default Value | Description | |----------|---------------|-------------| |`DEFAULT_USER`|None|Username to consider a "default context" (you can also use `$USER`)| +|`POWERLEVEL9K_CONTEXT_HOST_DEPTH`|%m|Customizable host depth on prompt| ##### dir |