Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions conf.d/fish_command_timer.fish
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ if not set -q fish_command_timer_status_enabled
set fish_command_timer_status_enabled 0
end

if not set -q fish_command_timer_export_only_string
set fish_command_timer_export_only_string 0
end

# The color of the output.
#
# This should be a color string accepted by fish's set_color command, as
Expand Down Expand Up @@ -281,6 +285,11 @@ function fish_command_timer_postexec -e fish_postexec
set status_str_colored "$status_str"
end

if [ $fish_command_timer_export_only_string -ne 0 ]
set -g fish_command_timer_string "$status_str_colored $timing_str_colored"
return
end

# Combine status string and timing string.
set -l output_length (math $timing_str_length + $status_str_length + 1)

Expand Down