Reworked command_execution_time segment

- Add a visual identifier
- Fix a bug that the time was not reset
- Make calculation independent of segment (thx @rjorgenson)
This commit is contained in:
Dominik Ritter 2017-02-13 23:11:53 +01:00
commit 04e75a683d
2 changed files with 9 additions and 3 deletions

View file

@ -79,6 +79,7 @@ case $POWERLEVEL9K_MODE in
SWIFT_ICON ''
PUBLIC_IP_ICON ''
LOCK_ICON $'\UE138' # 
EXECUTION_TIME_ICON $'\UE89C' # 
)
;;
'awesome-fontconfig')
@ -140,6 +141,7 @@ case $POWERLEVEL9K_MODE in
SWIFT_ICON ''
PUBLIC_IP_ICON ''
LOCK_ICON $'\UE138' # 
EXECUTION_TIME_ICON $'\uF253'
)
;;
*)
@ -201,6 +203,7 @@ case $POWERLEVEL9K_MODE in
SWIFT_ICON 'Swift'
PUBLIC_IP_ICON ''
LOCK_ICON $'\UE0A2'
EXECUTION_TIME_ICON 'Dur'
)
;;
esac