mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 07:44:38 +00:00
Time format is now configurable.
This commit is contained in:
@@ -277,7 +277,12 @@ prompt_longstatus() {
|
|||||||
|
|
||||||
# System time
|
# System time
|
||||||
prompt_time() {
|
prompt_time() {
|
||||||
$1_prompt_segment $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR '%D{%H:%M:%S} '
|
local time_format='%D{%H:%M:%S} '
|
||||||
|
if [[ -n $POWERLEVEL9K_TIME_FORMAT ]]; then
|
||||||
|
time_format=$POWERLEVEL9K_TIME_FORMAT
|
||||||
|
fi
|
||||||
|
|
||||||
|
$1_prompt_segment $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR $time_format
|
||||||
}
|
}
|
||||||
|
|
||||||
# Command number (in local history)
|
# Command number (in local history)
|
||||||
|
|||||||
Reference in New Issue
Block a user