mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-25 22:22:31 +01:00
Moving docs
This commit is contained in:
parent
781a2e35b7
commit
59781d8744
65 changed files with 13830 additions and 0 deletions
16
mkdocs/features/extensible.md
Normal file
16
mkdocs/features/extensible.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Extensible
|
||||
|
||||
If there is no prompt segment that does what you need, implement your own. Powerlevel10k provides
|
||||
public API for defining segments that are as fast and as flexible as built-in ones.
|
||||
|
||||

|
||||
|
||||
On Linux you can fetch current CPU temperature by reading `/sys/class/thermal/thermal_zone0/temp`.
|
||||
The screencast shows how to define a prompt segment to display this value. Once the segment is
|
||||
defined, you can use it like any other segment. All standard customization parameters will work for
|
||||
it out of the box.
|
||||
|
||||
Type `p10k help segment` for reference.
|
||||
|
||||
_Tip_: Prefix names of your own segments with `my_` to avoid clashes with future versions of
|
||||
Powerlevel10k.
|
||||
Loading…
Add table
Add a link
Reference in a new issue