mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-17 07:56:11 +01:00
funny fish
This commit is contained in:
11
.config/fish/functions/_pure_prompt_command_duration.fish
Normal file
11
.config/fish/functions/_pure_prompt_command_duration.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
function _pure_prompt_command_duration
|
||||
set --local command_duration
|
||||
|
||||
# Get command execution duration
|
||||
if test -n "$CMD_DURATION"
|
||||
set command_duration (_pure_format_time $CMD_DURATION $pure_threshold_command_duration $pure_show_subsecond_command_duration)
|
||||
end
|
||||
set --local command_duration_color (_pure_set_color $pure_color_command_duration)
|
||||
|
||||
echo "$command_duration_color$command_duration"
|
||||
end
|
||||
Reference in New Issue
Block a user