Merge pull request #51 from zaclimon/master

Add option to hide cmd duration
This commit is contained in:
Justin Hileman 2016-07-17 15:41:46 -07:00 committed by GitHub
commit 6dfabda323
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 ]