Add an option to hide the cmd duration

This commit is contained in:
zaclimon 2016-07-15 19:14:19 -04:00
parent 5364df9816
commit f9414db37d
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ set -g theme_display_user yes
set -g theme_display_vi yes
set -g theme_display_vi_hide_mode default
set -g theme_display_date no
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes
set -g theme_title_display_path no
set -g theme_title_use_abbreviated_path no

View File

@ -2,6 +2,7 @@
# set -g theme_date_format "+%a %H:%M"
function __bobthefish_cmd_duration -S -d 'Show command duration'
[ "$theme_display_cmd_duration" = "no" ]; and return
[ "$CMD_DURATION" -lt 100 ]; and return
if [ "$CMD_DURATION" -lt 5000 ]