fish: add time info to prompt
This commit is contained in:
parent
195902be40
commit
6d9c8e364a
@ -16,6 +16,19 @@ function fish_right_prompt
|
|||||||
set usercolor (set_color $col)
|
set usercolor (set_color $col)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -l duration "$cmd_duration$CMD_DURATION"
|
||||||
|
if test $duration -gt 100
|
||||||
|
set duration (math $duration / 1000)s
|
||||||
|
else
|
||||||
|
set duration
|
||||||
|
end
|
||||||
|
|
||||||
|
printf '%s%s %s%s%s' \
|
||||||
|
(set_color brgrey) \
|
||||||
|
$duration \
|
||||||
|
(set_color brblue) \
|
||||||
|
(date +"%H:%M") \
|
||||||
|
(set_color normal)
|
||||||
printf '%s ' \
|
printf '%s ' \
|
||||||
(fish_git_prompt)
|
(fish_git_prompt)
|
||||||
printf '%s%s@%s%s'\
|
printf '%s%s@%s%s'\
|
||||||
|
Loading…
Reference in New Issue
Block a user